drop_monitor: add missing call to genlmsg_end
authorReiter Wolfgang <wr0112358@gmail.com>
Sat, 31 Dec 2016 20:11:57 +0000 (21:11 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jan 2017 12:41:35 +0000 (13:41 +0100)
commit81e7916476caa0c68c9442adeef90fe41cf0493b
tree02c6e88aab593bec82a14dbfcae540835f83df78
parent1ff0308f33ce35e9b347d4ce0bdb04fbb6cc6645
drop_monitor: add missing call to genlmsg_end

[ Upstream commit 4200462d88f47f3759bdf4705f87e207b0f5b2e4 ]

Update nlmsg_len field with genlmsg_end to enable userspace processing
using nlmsg_next helper. Also adds error handling.

Signed-off-by: Reiter Wolfgang <wr0112358@gmail.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/drop_monitor.c