projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19694ac
)
net: fix __dst_destroy_metrics_generic()
author
Eric Dumazet
<eric.dumazet@gmail.com>
Tue, 24 May 2011 17:29:50 +0000
(13:29 -0400)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 May 2011 17:29:50 +0000
(13:29 -0400)
dst_default_metrics is readonly, we dont want to kfree() it later.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dst.c
patch
|
blob
|
history
diff --git
a/net/core/dst.c
b/net/core/dst.c
index 81a4fa1c95ed32a266ef503b796ee998f4599a1d..9ccca038444f11fda683bbed8bf56ad0d5e1b65e 100644
(file)
--- a/
net/core/dst.c
+++ b/
net/core/dst.c
@@
-315,7
+315,7
@@
void __dst_destroy_metrics_generic(struct dst_entry *dst, unsigned long old)
{
unsigned long prev, new;
- new = (
unsigned long) dst_default_metrics
;
+ new = (
(unsigned long) dst_default_metrics) | DST_METRICS_READ_ONLY
;
prev = cmpxchg(&dst->_metrics, old, new);
if (prev == old)
kfree(__DST_METRICS_PTR(old));