]> git.baikalelectronics.ru Git - kernel.git/commit
net/netlink_compat: Fix a missing check of nla_parse_nested
authorAditya Pakki <pakki001@umn.edu>
Mon, 24 Dec 2018 00:54:53 +0000 (18:54 -0600)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Dec 2018 22:42:11 +0000 (14:42 -0800)
commite6667d3a8a622d6d1f732267f7d02357c2866070
treec651f5db44d955e72cc16e80bbf39065c4c5e19c
parent08dc8728260523cfe151f8edf35fae6860b212e4
net/netlink_compat: Fix a missing check of nla_parse_nested

In tipc_nl_compat_sk_dump(), if nla_parse_nested() fails, it could return
an error. To be consistent with other invocations of the function call,
on error, the fix passes the return value upstream.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c