ionic: unlock queue mutex in error path
authorShannon Nelson <snelson@pensando.io>
Wed, 29 Jul 2020 17:52:17 +0000 (10:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 00:37:16 +0000 (17:37 -0700)
commit59929fbb45e06da7d501d3a97f10a91912181f7c
treec1b549fc1ea0c7697b76aaa16b6fc9e0ae1e9de8
parent51875dad43b44241b46a569493f1e4bfa0386d86
ionic: unlock queue mutex in error path

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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c