From: Alexey Khoroshilov Date: Thu, 13 Jun 2013 20:26:11 +0000 (+0400) Subject: orinoco_usb: fix memory leak in ezusb_access_ltv() when device disconnected X-Git-Tag: v3.11-rc1~64^2~166^2^2~35 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1105a13bb8ad29cf83d46989ee462d196038be87;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed