Commit e057590b authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by David S. Miller
Browse files

drivers/net: enic: release rtnl_lock on error-path

enic_change_mtu_work() must call rtnl_unlock() on all exiting paths.

Signed-off-by: default avatarKonstantin Khlebnikov <>
Cc: Christian Benvenuti <>
Cc: Roopa Prabhu <>
Cc: Neel Patel <>
Cc: Nishank Trivedi <>
Signed-off-by: default avatarDavid S. Miller <>
parent dd7633ec
......@@ -1761,6 +1761,7 @@ static void enic_change_mtu_work(struct work_struct *work)
err = vnic_rq_disable(&enic->rq[0]);
if (err) {
netdev_err(netdev, "Unable to disable RQ.\n");
......@@ -1773,6 +1774,7 @@ static void enic_change_mtu_work(struct work_struct *work)
vnic_rq_fill(&enic->rq[0], enic_rq_alloc_buf);
/* Need at least one buffer on ring to get going */
if (vnic_rq_desc_used(&enic->rq[0]) == 0) {
netdev_err(netdev, "Unable to alloc receive buffers.\n");
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment