openvswitch: add missing attribute validation for hash
authorJakub Kicinski <kuba@kernel.org>
Tue, 3 Mar 2020 05:05:18 +0000 (21:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Mar 2020 21:28:48 +0000 (13:28 -0800)
commitb5ab1f1be6180a2e975eede18731804b5164a05d
tree91316334937a23ca9365a49d6dce7dc11f7f47dc
parent31d9a1c524964bac77b7f9d0a1ac140dc6b57461
openvswitch: add missing attribute validation for hash

Add missing attribute validation for OVS_PACKET_ATTR_HASH
to the netlink policy.

Fixes: bd1903b7c459 ("net: openvswitch: add hash info to upcall")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Greg Rose <gvrose8192@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/openvswitch/datapath.c