]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
tipc: fix a missing check of genlmsg_put
authorKangjie Lu <kjlu@umn.edu>
Wed, 26 Dec 2018 06:09:04 +0000 (00:09 -0600)
committerMarcelo Henrique Cerri <marcelo.cerri@canonical.com>
Fri, 17 Jan 2020 17:21:37 +0000 (14:21 -0300)
commit77aec9faf82df257be79abf4f534e93f59b72e8e
treec9a8a58b19d3b6fd99dd1e61e7f017f8857a3c1f
parentff2df2e9f369ce1e9a53fd33239ad9c528d6c66f
tipc: fix a missing check of genlmsg_put

BugLink: https://bugs.launchpad.net/bugs/1855787
[ Upstream commit 46273cf7e009231d2b6bc10a926e82b8928a9fb2 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/tipc/netlink_compat.c