The sparse checker reported that the type of the pointer passed to
nla_next(), as &actions_len_left, was incorrect: whereas the parameter
has type "int *", &actions_len_left is an "unsigned int *". This fixes
the problem. It is not a bug fix since the code is equally correct (or
incorrect) either way, but it gets the types right anyhow.
I don't know why GCC was not reporting this as an error.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
* groups configured). */
if (skb_is_gso(skb)) {
const struct nlattr *actions_left;
- u32 actions_len_left;
+ int actions_len_left;
struct sk_buff *segs;
segs = skb_gso_segment(skb, 0);