OSDN Git Service

netlink: allow NLA_MSECS to have range validation
authorJohannes Berg <johannes.berg@intel.com>
Thu, 30 Apr 2020 20:13:09 +0000 (22:13 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2020 00:51:42 +0000 (17:51 -0700)
commitda4063bdfcfa70ec57a6c25f772ac6378b1584ad
tree5c696cde25b78db8ee4437f71d27709296213ffe
parentd06a09b94c618c96ced584dd4611a888c8856b8d
netlink: allow NLA_MSECS to have range validation

Since NLA_MSECS is really equivalent to NLA_U64, allow
it to have range validation as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netlink.h
lib/nlattr.c