Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: ccree: remove extraneous spin_unlock_bh() in error handler

An early error handler in send_request() tries to release a spinlock,
but the lock isn't acquired until the loop below it is entered.

Signed-off-by: Ian Chard <ian@chard.org>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Ian Chard and committed by
Greg Kroah-Hartman
c2137663 f03d95f5

-1
-1
drivers/staging/ccree/ssi_request_mgr.c
··· 376 376 rc = ssi_power_mgr_runtime_get(&drvdata->plat_dev->dev); 377 377 if (rc != 0) { 378 378 SSI_LOG_ERR("ssi_power_mgr_runtime_get returned %x\n",rc); 379 - spin_unlock_bh(&req_mgr_h->hw_lock); 380 379 return rc; 381 380 } 382 381 #endif