diff options
author | Marina Makienko <makienko@ispras.ru> | 2013-02-26 02:41:18 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-11 10:29:10 -0400 |
commit | 7c5a54fb869d980c2a3c0972fe1e22816dd5b7b2 (patch) | |
tree | fe4957f5711946500773152faeb696898de1f694 /drivers/nfc | |
parent | 6d2cd978e5e14c47fa4f8ab3a136e38aceb4940d (diff) |
NFC: pn533: Add missing usb_put_dev
Add missing usb_put_dev on failure path in pn533_probe().
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Marina Makienko <makienko@ispras.ru>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/nfc')
-rw-r--r-- | drivers/nfc/pn533.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/nfc/pn533.c b/drivers/nfc/pn533.c index 4d56ad4c8bfb..3569b9e621ea 100644 --- a/drivers/nfc/pn533.c +++ b/drivers/nfc/pn533.c | |||
@@ -2779,6 +2779,7 @@ destroy_wq: | |||
2779 | error: | 2779 | error: |
2780 | usb_free_urb(dev->in_urb); | 2780 | usb_free_urb(dev->in_urb); |
2781 | usb_free_urb(dev->out_urb); | 2781 | usb_free_urb(dev->out_urb); |
2782 | usb_put_dev(dev->udev); | ||
2782 | kfree(dev); | 2783 | kfree(dev); |
2783 | return rc; | 2784 | return rc; |
2784 | } | 2785 | } |