diff options
author | Sridhar Samudrala <sri@us.ibm.com> | 2013-08-08 15:19:48 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-14 06:54:54 -0700 |
commit | 21db4be1321b1fe80a28eb122e459c8ab3c2bd1f (patch) | |
tree | 750c199568ba3e760d6dbe9103e664e6babbce55 /net | |
parent | 6c1a4bb872100c852b07480396744608278dd9ee (diff) | |
download | linux-3.10-21db4be1321b1fe80a28eb122e459c8ab3c2bd1f.tar.gz linux-3.10-21db4be1321b1fe80a28eb122e459c8ab3c2bd1f.tar.bz2 linux-3.10-21db4be1321b1fe80a28eb122e459c8ab3c2bd1f.zip |
rtnetlink: Fix inverted check in ndo_dflt_fdb_del()
[ Upstream commit 645359930231d5e78fd3296a38b98c1a658a7ade ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/core/rtnetlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a08bd2b7fe3..373a8e76af0 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -2142,7 +2142,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; } |