diff options
author | Hans de Goede <hdegoede@redhat.com> | 2015-01-15 07:42:36 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-01-29 18:28:16 -0200 |
commit | c7e5a726d5fbf453c49fc8326a6580402643c900 (patch) | |
tree | 20f0ea70ac094d4ba6f29b725bb7a4c47d0337f0 /firmware/e100 | |
parent | 0f5b26576246251622e33c076486b7cb0bdb0d99 (diff) | |
download | linux-c7e5a726d5fbf453c49fc8326a6580402643c900.tar.bz2 |
[media] gspca: Fix underflow in vidioc_s_parm()
"n" is a user controlled integer. The code here doesn't handle the case
where "n" is negative and this causes a static checker warning.
drivers/media/usb/gspca/gspca.c:1571 vidioc_s_parm()
warn: no lower bound on 'n'
parm.capture.readbuffers is unsigned, so make n unsigned too, fixing this.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'firmware/e100')
0 files changed, 0 insertions, 0 deletions