tipc: fix a missing check of genlmsg_put
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 06:09:04 +0000 (00:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Dec 2018 00:26:09 +0000 (16:26 -0800)
commit46273cf7e009231d2b6bc10a926e82b8928a9fb2
tree73bf3ea3c86d358981738515f96ca11dc4447f15
parentff07d48d7bc0974d4f96a85a4df14564fb09f1ef
tipc: fix a missing check of genlmsg_put

genlmsg_put could fail. The fix inserts a check of its return value, and
if it fails, returns -EMSGSIZE.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c