From: Alexey Khoroshilov Date: Wed, 16 Mar 2011 19:54:05 +0000 (+0200) Subject: USB: usb-gadget: unlock data->lock mutex on error path in ep_read() X-Git-Tag: v2.6.39-rc4~16^2~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00cc7a5faf25b3ba5cf30fcffc62249bdd152006;p=pandora-kernel.git USB: usb-gadget: unlock data->lock mutex on error path in ep_read() ep_read() acquires data->lock mutex in get_ready_ep() and releases it on all paths except for one: when usb_endpoint_xfer_isoc() failed. The patch adds mutex_unlock(&data->lock) at that path. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed