aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/netlink.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r--include/net/netlink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h
index 76c43ff38f64..3643bbb8e585 100644
--- a/include/net/netlink.h
+++ b/include/net/netlink.h
@@ -698,7 +698,7 @@ static inline int nla_len(const struct nlattr *nla)
698 */ 698 */
699static inline int nla_ok(const struct nlattr *nla, int remaining) 699static inline int nla_ok(const struct nlattr *nla, int remaining)
700{ 700{
701 return remaining >= sizeof(*nla) && 701 return remaining >= (int) sizeof(*nla) &&
702 nla->nla_len >= sizeof(*nla) && 702 nla->nla_len >= sizeof(*nla) &&
703 nla->nla_len <= remaining; 703 nla->nla_len <= remaining;
704} 704}