cxgb4: fix -ve error check on a signed iq
authorColin Ian King <colin.king@canonical.com>
Sun, 25 Sep 2016 21:14:45 +0000 (14:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Sep 2016 03:39:46 +0000 (23:39 -0400)
commit1cb1860d9133ff795cac640b9af4569a2668b45e
treea2419659d22d7b1e95d78a9d24b09aee3ce85b5d
parentbce3414e9df621f537ee30e3dbd7cd4258c81adb
cxgb4: fix -ve error check on a signed iq

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@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c