]> git.baikalelectronics.ru Git - kernel.git/commit
mctp: Don't let RTM_DELROUTE delete local routes
authorMatt Johnston <matt@codeconstruct.com.au>
Wed, 1 Dec 2021 08:07:42 +0000 (16:07 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Dec 2021 12:15:25 +0000 (12:15 +0000)
commit0245372411538bae8c70c78b8dc42811d4fb86dc
tree8b5261f4d4ecd6b312ca5e4289ca1dfdc6408dc2
parent99657db029803a64875e28c0703aeec2a9cbd042
mctp: Don't let RTM_DELROUTE delete local routes

We need to test against the existing route type, not
the rtm_type in the netlink request.

Fixes: 200c1b0d4752 ("mctp: Specify route types, require rtm_type in RTM_*ROUTE messages")
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/route.c