[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20110708072115.GR18655@shale.localdomain>
Date: Fri, 8 Jul 2011 10:21:15 +0300
From: Dan Carpenter <error27@...il.com>
To: Lauro Ramos Venancio <lauro.venancio@...nbossa.org>
Cc: "John W. Linville" <linville@...driver.com>,
Samuel Ortiz <sameo@...ux.intel.com>,
Aloisio Almeida Jr <aloisio.almeida@...nbossa.org>,
open list <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [patch] NFC: pn533: use after free in pn533_disconnect()
We freed "dev" on the line before.
Signed-off-by: Dan Carpenter <error27@...il.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 = {
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists