projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c519e
)
tr: fix leakage of device in net/802/tr.c
author
Wei Yongjun
<yjwei@cn.fujitsu.com>
Wed, 8 Apr 2009 21:27:28 +0000
(21:27 +0000)
committer
David S. Miller
<davem@davemloft.net>
Sat, 11 Apr 2009 08:43:17 +0000
(
01:43
-0700)
Add dev_put() after dev_get_by_index() to avoid leakage
of device.
Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/802/tr.c
patch
|
blob
|
history
diff --git
a/net/802/tr.c
b/net/802/tr.c
index
e7eb130
..
e874447
100644
(file)
--- a/
net/802/tr.c
+++ b/
net/802/tr.c
@@
-561,6
+561,9
@@
static int rif_seq_show(struct seq_file *seq, void *v)
}
seq_putc(seq, '\n');
}
+
+ if (dev)
+ dev_put(dev);
}
return 0;
}