summaryrefslogtreecommitdiff
path: root/drivers/media/pci
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-15 22:21:33 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-08 16:28:59 +0300
commit1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a (patch)
tree237b4b082f45004df93692eea6a5718b20ab4f9f /drivers/media/pci
parent93a24578de721006055b422c7772e0e417e1983c (diff)
downloadlinux-1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a.tar.xz
media: saa7146: Avoid using BUG_ON as an assertion
In video_begin and video_end, saa7146_format_by_fourcc can return NULL and is checked via BUG_ON. However, by returning the error to the callers upstream, we can avoid the crash and handle it via recovery code. Signed-off-by: Aditya Pakki <pakki001@umn.edu> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions