Re: [PATCH][V2] cxgb4: fix -ve error check on a signed iq
From: David Miller
Date: Sun Sep 25 2016 - 23:40:48 EST
From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Sun, 25 Sep 2016 14:14:45 -0700
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> iq is unsigned, so the error check for iq < 0 has no effect so errors
> can slip past this check. Fix this by making iq signed and also
> get_filter_steerq return a signed int so a -ve error can be returned.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
Applied, thanks.