summaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorSridhar Samudrala2013-08-09 00:19:48 +0200
committerDavid S. Miller2013-08-10 10:24:12 +0200
commit645359930231d5e78fd3296a38b98c1a658a7ade (patch)
tree78c078f2d7beb709ce16eac17eeec16df87e12a1 /net/core/rtnetlink.c
parentnet: stmmac: Fixed the condition of extend_desc for jumbo frame (diff)
downloadkernel-qcow2-linux-645359930231d5e78fd3296a38b98c1a658a7ade.tar.gz
kernel-qcow2-linux-645359930231d5e78fd3296a38b98c1a658a7ade.tar.xz
kernel-qcow2-linux-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/core/rtnetlink.c')
-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;
}