projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb6c73
)
drivers/net/eql.c: Fix a dev leakage.
author
Yang Hongyang
<yanghy@cn.fujitsu.com>
Wed, 8 Apr 2009 22:56:33 +0000
(15:56 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Apr 2009 22:56:33 +0000
(15:56 -0700)
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>
drivers/net/eql.c
patch
|
blob
|
history
diff --git
a/drivers/net/eql.c
b/drivers/net/eql.c
index 51ead7941f83ad249f6757eda2b50f6b6521d758..5210bb1027cce43d168d5f09d391064af2fac812 100644
(file)
--- a/
drivers/net/eql.c
+++ b/
drivers/net/eql.c
@@
-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;
}