]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wfx: unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 May 2020 08:36:56 +0000 (11:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:00:44 +0000 (14:00 +0200)
commit5da58b1d11c54883cb3dd4eb181177c8527bdc5c
treecd2e0df2793156d8d148fbbc91886431aff311db
parent2d4df9c2b9641aaf324208a8a0bfc3d6af9aa421
staging: wfx: unlock on error path

We need to release the tx_lock on the error path before returning.

Fixes: 5fd4119326d0 ("staging: wfx: rewrite wfx_hw_scan()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200512083656.GA251760@mwanda
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/scan.c