From: Sridhar Samudrala Date: Thu, 8 Aug 2013 22:19:48 +0000 (-0700) Subject: rtnetlink: Fix inverted check in ndo_dflt_fdb_del() X-Git-Tag: v4.9.8~8032^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=645359930231d5e78fd3296a38b98c1a658a7ade;p=platform%2Fkernel%2Flinux-rpi3.git rtnetlink: Fix inverted check in ndo_dflt_fdb_del() Fix inverted check when deleting an fdb entry. Signed-off-by: Sridhar Samudrala Signed-off-by: David S. Miller --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 3de7408..82d9685 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; }