summaryrefslogtreecommitdiff
path: root/net/mctp/neigh.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mctp/neigh.c')
-rw-r--r--net/mctp/neigh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mctp/neigh.c b/net/mctp/neigh.c
index 6ad3e33bd4d4..ffa0f9e0983f 100644
--- a/net/mctp/neigh.c
+++ b/net/mctp/neigh.c
@@ -143,7 +143,7 @@ static int mctp_rtm_newneigh(struct sk_buff *skb, struct nlmsghdr *nlh,
}
eid = nla_get_u8(tb[NDA_DST]);
- if (!mctp_address_ok(eid)) {
+ if (!mctp_address_unicast(eid)) {
NL_SET_ERR_MSG(extack, "Invalid neighbour EID");
return -EINVAL;
}