projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f319e3
)
NFC: port100: Fix device leak
author
Alexey Khoroshilov
<khoroshilov@ispras.ru>
Sat, 4 Jan 2014 20:08:05 +0000
(
00:08
+0400)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Sat, 4 Jan 2014 23:49:00 +0000
(
00:49
+0100)
port100_probe() calls usb_get_dev(), but there is no usb_put_dev()
in port100_disconnect(). The patch adds one.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/port100.c
patch
|
blob
|
history
diff --git
a/drivers/nfc/port100.c
b/drivers/nfc/port100.c
index 8a0571eb2627e42becfeb424e33d8099255037c7..a8555f81cbbac2ce4dac42c509d898228cc451f3 100644
(file)
--- a/
drivers/nfc/port100.c
+++ b/
drivers/nfc/port100.c
@@
-1509,6
+1509,7
@@
static void port100_disconnect(struct usb_interface *interface)
usb_free_urb(dev->in_urb);
usb_free_urb(dev->out_urb);
+ usb_put_dev(dev->udev);
kfree(dev->cmd);