Skip to content

Commit

Permalink
drivers/net/eql.c: Fix a dev leakage.
Browse files Browse the repository at this point in the history
After dev_get_by_name(), we should follow a dev_put().

Signed-off-by: Yang Hongyang <yanghy@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Yang Hongyang authored and David S. Miller committed Apr 8, 2009
1 parent efb6c73 commit 93889d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/eql.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ static int eql_s_slave_cfg(struct net_device *dev, slave_config_t __user *scp)
}
spin_unlock_bh(&eql->queue.lock);

dev_put(slave_dev);

return ret;
}

Expand Down

0 comments on commit 93889d7

Please sign in to comment.