netlink: add minlen validation for the new signed types
Subsystems (3)
PATCH 1/1 netlink: add minlen validation for the new signed types
Signed-off-by Julian Anastasov <[email protected]>
--- lib/nlattr.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
lib/nlattr.c +4 -0
@@ -22,6 +22,10 @@ static const u16 nla_attr_minlen[NLA_TYPE_MAX+1] = { [NLA_U64] = sizeof(u64), [NLA_MSECS] = sizeof(u64), [NLA_NESTED] = NLA_HDRLEN, + [NLA_S8] = sizeof(s8), + [NLA_S16] = sizeof(s16), + [NLA_S32] = sizeof(s32), + [NLA_S64] = sizeof(s64), }; static int validate_nla(const struct nlattr *nla, int maxtype,
Signature · 1 line
1.7.3.4
From: Julian Anastasov <[email protected]>
Date: Sun, 26 Aug 2012 11:47:57 +0300
Quoted 1 line
Signed-off-by Julian Anastasov <[email protected]>
Applied to net-next, thanks Julian.