projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e6e8c5
)
NFC: pn533: use after free in pn533_disconnect()
author
Dan Carpenter
<error27@gmail.com>
Fri, 8 Jul 2011 07:21:15 +0000
(10:21 +0300)
committer
John W. Linville
<linville@tuxdriver.com>
Tue, 26 Jul 2011 20:27:24 +0000
(16:27 -0400)
We freed "dev" on the line before.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/nfc/pn533.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/pn533.c
b/drivers/nfc/pn533.c
index 03723154071925ef9f75127b62118b4949770023..c77e0543e5021be8d1b8696f5572d537bb654882 100644
(file)
--- a/
drivers/nfc/pn533.c
+++ b/
drivers/nfc/pn533.c
@@
-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 = {