uwb: fix uwb_dev_unlock() missed at an error path in uwb_rc_cmd_async()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Mon, 26 Nov 2012 20:26:46 +0000 (00:26 +0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 23:58:43 +0000 (15:58 -0800)
commitffa5c41c81503b6f48fddb5d39f18af526ded8d3
treefc1506e9c02747f0ab8ea12ce7e0b400fd3dbe8c
parentd7e14b375b40c04cd735b115713043b69a2c68ac
uwb: fix uwb_dev_unlock() missed at an error path in uwb_rc_cmd_async()

There is the only path in uwb_rc_cmd_async() where rc->uwb_dev is left unlocked.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uwb/reset.c