]> 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)
commitc6059dae1f3d785ad20a10bc25e4d1594ea7b7db
tree3b5b526a9b33639d60c8951cc2e70a2de346189a
parent92d4b5b63a7f89b44c4f678571528c910bedb610
[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