projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
236c9f8
)
atm: idt77252: fix dev refcnt leak
author
Ying Xue
<ying.xue@windriver.com>
Tue, 19 Nov 2013 10:09:27 +0000
(18:09 +0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Nov 2013 20:53:02 +0000
(15:53 -0500)
init_card() calls dev_get_by_name() to get a network deceive. But it
doesn't decrease network device reference count after the device is
used.
Signed-off-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/atm/idt77252.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/atm/idt77252.c
b/drivers/atm/idt77252.c
index 272f00927761b1e34e5676ad018e0f72ef623b8c..1bdf104e90bb7f1924acf51f78caa39817d78efb 100644
(file)
--- a/
drivers/atm/idt77252.c
+++ b/
drivers/atm/idt77252.c
@@
-3511,7
+3511,7
@@
static int init_card(struct atm_dev *dev)
tmp = dev_get_by_name(&init_net, tname); /* jhs: was "tmp = dev_get(tname);" */
if (tmp) {
memcpy(card->atmdev->esi, tmp->dev_addr, 6);
-
+ dev_put(tmp);
printk("%s: ESI %pM\n", card->name, card->atmdev->esi);
}
/*