net/ncsi: Fixup .dumpit message flags and ID check in Netlink handler
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 22 Aug 2018 04:57:44 +0000 (14:57 +1000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Aug 2018 04:39:08 +0000 (21:39 -0700)
commit3d0371b313b84ba7c16ebf2526a7a34f1c57b19e
tree9bc07854f920ac90f56189fd91a9f3bee6494745
parent00e1cae78120ee19462e7f96135cd1cc59a086e7
net/ncsi: Fixup .dumpit message flags and ID check in Netlink handler

The ncsi_pkg_info_all_nl() .dumpit handler is missing the NLM_F_MULTI
flag, causing additional package information after the first to be lost.
Also fixup a sanity check in ncsi_write_package_info() to reject out of
range package IDs.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ncsi/ncsi-netlink.c