提交 276556db 编写于 作者: D Dan Carpenter 提交者: John W. Linville

NFC: pn533: use after free in pn533_disconnect()

We freed "dev" on the line before.
Signed-off-by: NDan Carpenter <error27@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 6e6e8c51
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册