aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSridhar Samudrala <sri@us.ibm.com>2013-08-08 15:19:48 -0700
committerDavid S. Miller <davem@davemloft.net>2013-08-10 01:24:12 -0700
commit645359930231d5e78fd3296a38b98c1a658a7ade (patch)
tree78c078f2d7beb709ce16eac17eeec16df87e12a1 /net
parentnet: stmmac: Fixed the condition of extend_desc for jumbo frame (diff)
downloadlinux-dev-645359930231d5e78fd3296a38b98c1a658a7ade.tar.xz
linux-dev-645359930231d5e78fd3296a38b98c1a658a7ade.zip
rtnetlink: Fix inverted check in ndo_dflt_fdb_del()
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>
Diffstat (limited to 'net')
-rw-r--r--net/core/rtnetlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 3de740834d1f..82d968527121 100644
--- 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;
}