diff options
author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 20:21:33 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-01-08 14:28:59 +0100 |
commit | 1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a (patch) | |
tree | 237b4b082f45004df93692eea6a5718b20ab4f9f /drivers/media/pci | |
parent | 93a24578de721006055b422c7772e0e417e1983c (diff) | |
download | linux-stable-1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a.tar.gz linux-stable-1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a.tar.bz2 linux-stable-1ec4c6efe23154b4ab44c1a34dbc0eb121eb614a.zip |
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