mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-21 17:40:39 +07:00
tile: fix missing unlock on error in tile_net_open()
Add the missing unlock before return from function tile_net_open()
in the error handling case.
Introduced by commit f3286a3af8
.
(tile: support multiple mPIPE shims in tilegx network driver)
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f094668ca1
commit
1155e964a6
@ -1510,8 +1510,10 @@ static int tile_net_open(struct net_device *dev)
|
|||||||
|
|
||||||
/* Get the instance info. */
|
/* Get the instance info. */
|
||||||
rc = gxio_mpipe_link_instance(dev->name);
|
rc = gxio_mpipe_link_instance(dev->name);
|
||||||
if (rc < 0 || rc >= NR_MPIPE_MAX)
|
if (rc < 0 || rc >= NR_MPIPE_MAX) {
|
||||||
|
mutex_unlock(&tile_net_devs_for_channel_mutex);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
}
|
||||||
|
|
||||||
priv->instance = rc;
|
priv->instance = rc;
|
||||||
instance = rc;
|
instance = rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user