Skip to content

Commit

Permalink
Merge tag 'linux-can-next-for-3.16-20140521' of git://gitorious.org/l…
Browse files Browse the repository at this point in the history
…inux-can/linux-can-next

Marc Kleine-Budde says:

====================
pull-request: can-next 2014-05-19

this is a pull request of a single patch for net-next/master. It fixes a
use after free(), which slipped into to gs_usb driver.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed May 22, 2014
2 parents b128272 + cf68f51 commit a6cea53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/can/usb/gs_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,8 @@ static void gs_destroy_candev(struct gs_can *dev)
{
unregister_candev(dev->netdev);
free_candev(dev->netdev);
kfree(dev);
usb_kill_anchored_urbs(&dev->tx_submitted);
kfree(dev);
}

static int gs_usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
Expand Down

0 comments on commit a6cea53

Please sign in to comment.