]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb9182798787a0d5568b37f2bc17ba067b72ee383
treee632e0202b77a212cf2b6a2d4ef9982647699ebc
parent181fe98033375f805d84bb9cd5e88b3fab139133
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