]> git.baikalelectronics.ru Git - kernel.git/commit
netlink: avoid a double skb free in genlmsg_mcast()
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 14 Mar 2018 20:10:23 +0000 (21:10 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Mar 2018 16:34:48 +0000 (12:34 -0400)
commit53fc6abb6d5d71009892b3c802654985a808dd11
tree6d546ca371da37ba8c91bfc84f50f600c9c0ec9c
parentd8e6832071a89ed3533869d45612017cba5c4535
netlink: avoid a double skb free in genlmsg_mcast()

nlmsg_multicast() consumes always the skb, thus the original skb must be
freed only when this function is called with a clone.

Fixes: 003ff749187f ("netlink: ensure to loop over all netns in genlmsg_multicast_allns()")
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/genetlink.c