On Fri, May 29, 2020 at 01:21:22AM +0200, Michal Kubecek wrote: > As msgbuff_append() only copies protocol payload, i.e. part of the buffer > without netlink and genetlink header, and mnl_nlmsg_get_payload_len() only > subtracts netlink header length, we need to subtract genetlink header > length manually to get correct length of appended data block. > > Fixes: 5050607946b6 ("netlink: message buffer and composition helpers") > Reported-by: Andrew Lunn <and...@lunn.ch> > Signed-off-by: Michal Kubecek <mkube...@suse.cz>
Tested-by: Andrew Lunn <and...@lunn.ch> Andrew