Re: [PATCH] staging: wfx: unlock on error path

2020-05-12 Thread Jérôme Pouiller
On Tuesday 12 May 2020 10:36:56 CEST Dan Carpenter wrote: > > We need to release the tx_lock on the error path before returning. > > Fixes: d1c015b4ef6f ("staging: wfx: rewrite wfx_hw_scan()") > Signed-off-by: Dan Carpenter > --- > From static analysis. Not tested. > > drivers/staging/wfx/sca

[PATCH] staging: wfx: unlock on error path

2020-05-12 Thread Dan Carpenter
We need to release the tx_lock on the error path before returning. Fixes: d1c015b4ef6f ("staging: wfx: rewrite wfx_hw_scan()") Signed-off-by: Dan Carpenter --- >From static analysis. Not tested. drivers/staging/wfx/scan.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/d