Skip to content

Commit

Permalink
NFC: pn533: use after free in pn533_disconnect()
Browse files Browse the repository at this point in the history
We freed "dev" on the line before.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Jul 26, 2011
1 parent 6e6e8c5 commit 276556d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nfc/pn533.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 276556d

Please sign in to comment.