net: netlink: add the case when nlh is NULL
authorYajun Deng <yajun.deng@linux.dev>
Tue, 27 Jul 2021 03:41:41 +0000 (11:41 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 10:43:50 +0000 (11:43 +0100)
commitf9b282b36dfa9b6c6d6b3e8816cdf0e4defff482
treee632e0202b77a212cf2b6a2d4ef9982647699ebc
parentb0e81817629a496854ff1799f6cbd89597db65fd
net: netlink: add the case when nlh is NULL

Add the case when nlh is NULL in nlmsg_report(),
so that the caller doesn't need to deal with this case.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
net/core/rtnetlink.c
net/netlink/genetlink.c