diff options
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index 46b7764f1774..8a6150a3f4c7 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
@@ -332,7 +332,7 @@ static inline int nlmsg_attrlen(const struct nlmsghdr *nlh, int hdrlen) | |||
332 | */ | 332 | */ |
333 | static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) | 333 | static inline int nlmsg_ok(const struct nlmsghdr *nlh, int remaining) |
334 | { | 334 | { |
335 | return (remaining >= sizeof(struct nlmsghdr) && | 335 | return (remaining >= (int) sizeof(struct nlmsghdr) && |
336 | nlh->nlmsg_len >= sizeof(struct nlmsghdr) && | 336 | nlh->nlmsg_len >= sizeof(struct nlmsghdr) && |
337 | nlh->nlmsg_len <= remaining); | 337 | nlh->nlmsg_len <= remaining); |
338 | } | 338 | } |