tipc: fix potential null pointer dereferences in some compat functions
authorBaozeng Ding <sploving1@gmail.com>
Tue, 24 May 2016 14:33:24 +0000 (22:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 May 2016 19:33:52 +0000 (12:33 -0700)
commit297f7d2cce6a156c174334ee452f2f7a7ba405ca
treeb9b9d7fe44437f7a2df0330142dc50d60aa17c0a
parentec7c7f5cafdaeea509ad4e7e6f71c2312062c4c6
tipc: fix potential null pointer dereferences in some compat functions

Before calling the nla_parse_nested function, make sure the pointer to the
attribute is not null. This patch fixes several potential null pointer
dereference vulnerabilities in the tipc netlink functions.

Signed-off-by: Baozeng Ding <sploving1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c