summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-15 20:21:33 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-01-08 14:28:59 +0100
commit1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a (patch)
tree237b4b082f45004df93692eea6a5718b20ab4f9f /drivers/video
parent93a24578de721006055b422c7772e0e417e1983c (diff)
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/video')
0 files changed, 0 insertions, 0 deletions