]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drivers: net: davinci_cpdma: double free on error
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jun 2014 08:16:51 +0000 (11:16 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 22:39:19 +0000 (15:39 -0700)
commit2f87208efb5d06003d8f49af06e4501e768c8627
treed6ec328a70edc427562beebf6714ee3c171d5f20
parent8fc908c3c3a362df1bf9b8f999d30e2c4258d3fc
drivers: net: davinci_cpdma: double free on error

We recently change the kzalloc() to devm_kzalloc() so freeing "ctlr"
here could lead to a double free.

Fixes: e194312854ed ('drivers: net: davinci_cpdma: Convert kzalloc() to devm_kzalloc().')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c