summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/emac/debug.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2014-08-15 03:00:06 +0400
committerJohn W. Linville <linville@tuxdriver.com>2014-08-25 15:39:23 -0400
commit29e20aa6c6aff35c81d4da2e2cd516dadb569061 (patch)
tree622e9576448d921bca82e4ad7f275df647be0750 /drivers/net/ethernet/ibm/emac/debug.c
parente5cd6cee46764467e6cb14841ff59cd2e2573502 (diff)
at76c50x-usb: fix use after free on failure path in at76_probe()
After commit 174beab7d445 ("at76c50x-usb: Don't perform DMA from stack memory") at76_delete_device() and usb_put_dev() are called both if at76_init_new_device() fails in at76_probe(). But at76_delete_device() does usb_put_dev(priv->dev) itself that means double usb_put_dev(). The patch avoids the problem by moving usb_put_dev() from at76_delete_device() to at76_disconnect(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/ethernet/ibm/emac/debug.c')
0 files changed, 0 insertions, 0 deletions