projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d2cd97
)
NFC: pn533: Add missing usb_put_dev
author
Marina Makienko
<makienko@ispras.ru>
Tue, 26 Feb 2013 07:41:18 +0000
(11:41 +0400)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Thu, 11 Apr 2013 14:29:10 +0000
(16:29 +0200)
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>
drivers/nfc/pn533.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nfc/pn533.c
b/drivers/nfc/pn533.c
index 4d56ad4c8bfb417173c4a27dfa32301de81ded87..3569b9e621ea808e97ddfb9aaba6f62f6fd35029 100644
(file)
--- a/
drivers/nfc/pn533.c
+++ b/
drivers/nfc/pn533.c
@@
-2779,6
+2779,7
@@
destroy_wq:
error:
usb_free_urb(dev->in_urb);
usb_free_urb(dev->out_urb);
+ usb_put_dev(dev->udev);
kfree(dev);
return rc;
}