diff --git a/[refs] b/[refs] index 03fb6b495f31..a1c28e6ecb67 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 7c6a329e444725f24c02192ac493d8a7cd9fa638 +refs/heads/master: d58b622b5de9747c82fcc3548f3ec87a02c24dce diff --git a/trunk/include/net/netlink.h b/trunk/include/net/netlink.h index 18024b8cecb8..208fe5a38546 100644 --- a/trunk/include/net/netlink.h +++ b/trunk/include/net/netlink.h @@ -702,7 +702,7 @@ static inline int nla_len(const struct nlattr *nla) */ static inline int nla_ok(const struct nlattr *nla, int remaining) { - return remaining >= sizeof(*nla) && + return remaining >= (int) sizeof(*nla) && nla->nla_len >= sizeof(*nla) && nla->nla_len <= remaining; }