]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
media: ivtv: don't allow negative resolutions as module parameters
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 2 Sep 2021 10:31:37 +0000 (12:31 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 30 Sep 2021 08:07:58 +0000 (10:07 +0200)
commit4ba8d7046c04e0db11f3849643f894decb5e6d0a
treecb1d497ffd4d0993511c31a5991404920fb991c0
parent538314dbfc8adbe8af64a13c9f14e907a0a887fb
media: ivtv: don't allow negative resolutions as module parameters

This driver takes "osd_xres" and "osd_yres" as module parameters and
caps the upper bounds but it doesn't cap the lower bounds.  Obviously
the admin is not going to enter negative resolutions but the possibility
makes static analysis more difficult.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/ivtv/ivtvfb.c