]> git.baikalelectronics.ru Git - kernel.git/commit
[media] af9013: Don't accept invalid bandwidth
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Tue, 28 Apr 2015 22:02:19 +0000 (19:02 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 30 Apr 2015 17:26:22 +0000 (14:26 -0300)
commitd9705a395d9f01ca455f0d777cc19a25df279bc4
tree3b5b526a9b33639d60c8951cc2e70a2de346189a
parentfb0fc25afd86d92f85e07a6d6ea259770587dd49
[media] af9013: Don't accept invalid bandwidth

If userspace sends an invalid bandwidth, it should either return
EINVAL or switch to auto mode.

This driver will go past an array and program the hardware on a
wrong way if this happens.

Cc: stable@vger.kernel.org
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/dvb-frontends/af9013.c