OSDN Git Service

staging: qlge: fix ql_sem_unlock
authorCoiby Xu <coiby.xu@gmail.com>
Sat, 27 Jun 2020 14:58:56 +0000 (22:58 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 28 Jun 2020 10:47:05 +0000 (12:47 +0200)
commitae7368f9a30b61db7caaf958bf7ff2e1f7e6f715
treef3fead3ff52dfc439b1afcaaa38401fa2161aac1
parent6e8227155ece996e8887d3e4a0059b7fdcbcd1f0
staging: qlge: fix ql_sem_unlock

Some functions return without releasing the lock. Replace return with
break.

Suggested-by Dan Carpenter <dan.carpenter@oracle.com>.

Signed-off-by: Coiby Xu <coiby.xu@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20200627145857.15926-4-coiby.xu@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_dbg.c