[dpdk-dev] [PATCH] net/axgbe: fix protential unreleased lock problem in axgbe_i2c_xfer

2021-08-26 Thread Chengfeng Ye
The lock pdata->i2c_mutex is not released if the function return in these two patched branches, which may lead to deadlock problem if this lock is acuired again. The patch is to fix this problem. Cc: cy...@connect.ust.hk Bugzilla ID: 777 Signed-off-by: Chengfeng Ye --- drivers/net/axgbe/axgbe

[dpdk-dev] [PATCH] net/axgbe: fix protential unreleased lock problem

2021-08-26 Thread Chengfeng Ye
The lock pdata->phy_mutex may not be correctly released if the function return in these two branches, which may lead to deadlock if the lock is acuired again. The patch is to fix this problem. Cc: cy...@connect.ust.hk Bugzilla ID: 776 Signed-off-by: Chengfeng Ye --- drivers/net/axgbe/axgbe_ph