net/axgbe: fix unreleased lock in I2C transfer
authorChengfeng Ye <cyeaa@connect.ust.hk>
Thu, 26 Aug 2021 18:55:59 +0000 (11:55 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 8 Sep 2021 13:27:02 +0000 (15:27 +0200)
commit30b4d95a29b1bf7e868d799952aa1fa1348d5e25
treedb03e101316bb455547f4ccf124aaba54902df3c
parentc4498cb315d5c6367dc3a9dccb21ffd233336d34
net/axgbe: fix unreleased lock in I2C transfer

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 acquired again.

Bugzilla ID: 777
Fixes: 4ac7516b8b39 ("net/axgbe: add phy init and related APIs")
Cc: stable@dpdk.org
Signed-off-by: Chengfeng Ye <cyeaa@connect.ust.hk>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/axgbe/axgbe_i2c.c