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-Url: https://git.stricted.de/?a=commitdiff_plain;h=645359930231d5e78fd3296a38b98c1a658a7ade;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.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 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; }