From: Julian Anastasov Date: Sat, 25 Aug 2012 22:47:57 +0000 (+0000) Subject: netlink: add minlen validation for the new signed types X-Git-Tag: v3.7-rc1~145^2~266 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9eca2eb9942ee0b6f2bc76485e16e334aee2c0bf;p=platform%2Fkernel%2Flinux-stable.git netlink: add minlen validation for the new signed types Signed-off-by: Julian Anastasov Signed-off-by: David S. Miller --- diff --git a/lib/nlattr.c b/lib/nlattr.c index 4226dfe..18eca78 100644 --- a/lib/nlattr.c +++ b/lib/nlattr.c @@ -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,