rtnetlink: stats: validate attributes in get as well as dumps
authorJakub Kicinski <jakub.kicinski@netronome.com>
Fri, 18 Jan 2019 18:46:14 +0000 (10:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jan 2019 18:09:58 +0000 (10:09 -0800)
commit51bc860d4a997139a3f12bedb96bbf0edcf22d51
tree6cd7dc74fdb6aae4de7bd99e094e74bc40451189
parent59c28058fa7bb1cc7ab8b2c5607093cbbefafeb4
rtnetlink: stats: validate attributes in get as well as dumps

Make sure NETLINK_GET_STRICT_CHK influences both GETSTATS doit
as well as the dump.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c