mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 13:14:07 +08:00
NFC: pn533: use after free in pn533_disconnect()
We freed "dev" on the line before. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6e6e8c510a
commit
276556dbd2
@ -1596,7 +1596,7 @@ static void pn533_disconnect(struct usb_interface *interface)
|
||||
usb_free_urb(dev->out_urb);
|
||||
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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user