summaryrefslogtreecommitdiff
path: root/kernel/workqueue.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2013-06-13 20:26:11 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2013-06-14 17:37:16 (GMT)
commit1105a13bb8ad29cf83d46989ee462d196038be87 (patch)
tree5168bfdfb3a726b41bde8534746f9f5bdc216313 /kernel/workqueue.c
parent9b60b64bfe98b9cc01b21e6126819b11a0f0a971 (diff)
downloadlinux-1105a13bb8ad29cf83d46989ee462d196038be87.tar.xz
orinoco_usb: fix memory leak in ezusb_access_ltv() when device disconnected
If "device is disconnected" check occurs to be true in ezusb_access_ltv(), it just return -ENODEV. But that means request_context is leaked since there are no any references to it anymore. The patch adds a call to ezusb_request_context_put() before return. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'kernel/workqueue.c')
0 files changed, 0 insertions, 0 deletions