netlink: Add extack message to nlmsg_parse for invalid header length
authorDavid Ahern <dsahern@gmail.com>
Mon, 8 Oct 2018 03:16:23 +0000 (20:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Oct 2018 17:39:03 +0000 (10:39 -0700)
commit3d0d4337d7a105c5e8ba85c6e7b75437b4c6745e
tree308b38a3ba0246680b43600d771c0a276d2e8049
parent4a19edb60d0203cd5bf95a8b46ea8f63fd41194c
netlink: Add extack message to nlmsg_parse for invalid header length

Give a user a reason why EINVAL is returned in nlmsg_parse.

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Christian Brauner <christian@brauner.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h