OSDN Git Service

mctp: Fix incorrect netdev unref for extended addr
authorMatt Johnston <matt@codeconstruct.com.au>
Tue, 22 Feb 2022 04:17:39 +0000 (12:17 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Feb 2022 12:29:15 +0000 (12:29 +0000)
commite297db3eadd7809170aea627ed3d9f714fa3da2d
tree6a9568db1997af1cf933d8c1c92cb1053e0c7505
parentdc121c0084910db985cf1c8ba6fce5d8c307cc02
mctp: Fix incorrect netdev unref for extended addr

In the extended addressing local route output codepath
dev_get_by_index_rcu() doesn't take a dev_hold() so we shouldn't
dev_put().

Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mctp/route.c