drop_monitor: add missing call to genlmsg_end
authorReiter Wolfgang <wr0112358@gmail.com>
Sat, 31 Dec 2016 20:11:57 +0000 (21:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jan 2017 03:00:26 +0000 (22:00 -0500)
commit4200462d88f47f3759bdf4705f87e207b0f5b2e4
tree0aab7672e9f4bc19666b587e5c06b8af029baac5
parente1a3a60a2ebe991605acb14cd58e39c0545e174e
drop_monitor: add missing call to genlmsg_end

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>
net/core/drop_monitor.c