]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx2341x: fix kernel oops
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 20 Sep 2014 12:54:06 +0000 (09:54 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:56:11 +0000 (20:56 -0300)
commit7ea704b4adf77bac171f028f023fcdcd750e7479
tree82353740de531990c8ea1c15b892f69a21199e4d
parent4418b14b98ba8c6391d7c5c414f80032477e9716
[media] cx2341x: fix kernel oops

The v4l2_ctrl_config struct must be zeroed before passing it to
v4l2_ctrl_new_custom(). This was always wrong, but with the recent
v4l2-ctrls.c changes this is now much more likely to lead to a
kernel bug.

This is the only place where this struct wasn't initialized properly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Pridvorov Andrey <ua0lnj@bk.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/common/cx2341x.c