fsl/fman: fix the pause_time test
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 6 Jan 2016 09:58:09 +0000 (12:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Jan 2016 20:28:11 +0000 (15:28 -0500)
commite06a03bdf8781d6a93a13d5bdf33d058ca498a86
tree70407577b73c27610710839acaeafcb7d908b6b8
parent719255d0e29463ddba2d01a72c1e74092793103a
fsl/fman: fix the pause_time test

pause_time is unsigned so it can't be less than zero.  The bug means
that we allow invalid pause-times.

Fixes: 57ba4c9b56d8 ('fsl/fman: Add FMan MAC support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_dtsec.c