ionic: unlock queue mutex in error path
authorShannon Nelson <snelson@pensando.io>
Wed, 29 Jul 2020 17:52:17 +0000 (10:52 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2020 07:58:47 +0000 (09:58 +0200)
commit370a5b59dfde43e02bde05951867bc31cbbf9c93
treeadc8d811449546c75b87e67f6e3a3600233194b7
parent4e6da6f098ff11b84d1464c16491c7bd811c10e5
ionic: unlock queue mutex in error path

[ Upstream commit 59929fbb45e06da7d501d3a97f10a91912181f7c ]

On an error return, jump to the unlock at the end to be sure
to unlock the queue_lock mutex.

Fixes: 0925e9db4dc8 ("ionic: use mutex to protect queue operations")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/pensando/ionic/ionic_lif.c