* [patch] NFC: pn533: use after free in pn533_disconnect()
@ 2011-07-08 7:21 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2011-07-08 7:21 UTC (permalink / raw)
To: Lauro Ramos Venancio
Cc: John W. Linville, Samuel Ortiz, Aloisio Almeida Jr, open list,
kernel-janitors
We freed "dev" on the line before.
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c
index 0372315..c77e054 100644
--- 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 = {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-08 7:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-08 7:21 [patch] NFC: pn533: use after free in pn533_disconnect() Dan Carpenter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®