]> git.karo-electronics.de Git - karo-tx-linux.git/commit
yam: integer underflow in yam_ioctl()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Oct 2013 12:28:38 +0000 (15:28 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Oct 2013 19:53:09 +0000 (15:53 -0400)
commit9e5f1721907fcfbd4b575bcafa0314188f7330a5
treed829d983203f928296ed93582f3c0f1933c41948
parentdbbd2ad89bb1f86b94b23bb2e56d4935717f9b94
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>
include/linux/yam.h