Commit 276556db authored by Dan Carpenter's avatar Dan Carpenter Committed by John W. Linville

NFC: pn533: use after free in pn533_disconnect()

We freed "dev" on the line before.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 6e6e8c51
...@@ -1596,7 +1596,7 @@ static void pn533_disconnect(struct usb_interface *interface) ...@@ -1596,7 +1596,7 @@ static void pn533_disconnect(struct usb_interface *interface)
usb_free_urb(dev->out_urb); usb_free_urb(dev->out_urb);
kfree(dev); kfree(dev);
nfc_dev_info(&dev->interface->dev, "NXP PN533 NFC device disconnected"); nfc_dev_info(&interface->dev, "NXP PN533 NFC device disconnected");
} }
static struct usb_driver pn533_driver = { static struct usb_driver pn533_driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment