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:
21ff019
)
rtnetlink: Fix inverted check in ndo_dflt_fdb_del()
author
Sridhar Samudrala
<sri@us.ibm.com>
Thu, 8 Aug 2013 22:19:48 +0000
(15:19 -0700)
committer
David S. Miller
<davem@davemloft.net>
Sat, 10 Aug 2013 08:24:12 +0000
(
01:24
-0700)
Fix inverted check when deleting an fdb entry.
Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c
patch
|
blob
|
history
diff --git
a/net/core/rtnetlink.c
b/net/core/rtnetlink.c
index 3de740834d1ffcfa35fe31735b41d5a0dcb58c3a..82d96852712104d167852403e7a2d6bea6fe1b6e 100644
(file)
--- a/
net/core/rtnetlink.c
+++ b/
net/core/rtnetlink.c
@@
-2156,7
+2156,7
@@
int ndo_dflt_fdb_del(struct ndmsg *ndm,
/* If aging addresses are supported device will need to
* implement its own handler for this.
*/
- if (
ndm->ndm_state & NUD_PERMANENT
) {
+ if (
!(ndm->ndm_state & NUD_PERMANENT)
) {
pr_info("%s: FDB only supports static addresses\n", dev->name);
return -EINVAL;
}