diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-10-14 14:28:38 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-17 21:53:09 +0200 |
commit | 9e5f1721907fcfbd4b575bcafa0314188f7330a5 (patch) | |
tree | d829d983203f928296ed93582f3c0f1933c41948 /include | |
parent | net/ethernet: cpsw: Bugfix interrupts before enabling napi (diff) | |
download | linux-9e5f1721907fcfbd4b575bcafa0314188f7330a5.tar.xz linux-9e5f1721907fcfbd4b575bcafa0314188f7330a5.zip |
yam: integer underflow in yam_ioctl()
We cap bitrate at YAM_MAXBITRATE in yam_ioctl(), but it could also be
negative. I don't know the impact of using a negative bitrate but let's
prevent it.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/yam.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/yam.h b/include/linux/yam.h index 7fe28228b274..512cdc2fb80f 100644 --- a/include/linux/yam.h +++ b/include/linux/yam.h @@ -77,6 +77,6 @@ struct yamdrv_ioctl_cfg { struct yamdrv_ioctl_mcs { int cmd; - int bitrate; + unsigned int bitrate; unsigned char bits[YAM_FPGA_SIZE]; }; |