Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64535993 authored by Sridhar Samudrala's avatar Sridhar Samudrala Committed by David S. Miller
Browse files

rtnetlink: Fix inverted check in ndo_dflt_fdb_del()



Fix inverted check when deleting an fdb entry.

Signed-off-by: default avatarSridhar Samudrala <sri@us.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21ff0193
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}