mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
21ff01931e
commit
6453599302
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue