]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NFC: port100: Fix device leak
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 4 Jan 2014 20:08:05 +0000 (00:08 +0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Sat, 4 Jan 2014 23:49:00 +0000 (00:49 +0100)
commitc36aeba8c072d20a08e8546483494ab0f6458963
treeb5e0dcd7ed5bbfef8204d777ccff2e2aed23b18c
parent4f319e3251937a73719b13397d738640622ba513
NFC: port100: Fix device leak

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