diff options
author | Aditya Pakki <[email protected]> | 2020-01-06 15:32:51 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2020-01-09 14:41:41 +0100 |
commit | b0e4cfae483fe1e3db71ab2d8509490df60e52c6 (patch) | |
tree | 9169e7f98c0d11a8239061f896a810ed540ef7d5 /lib/mpi/mpi-internal.h | |
parent | 7fcaed4ab4bc454757da266076f4b28fa93f54d1 (diff) |
media: davinci/vpfe_capture.c: Avoid BUG_ON for register failure
In vpfe_register_ccdc_device(), failure to allocate dev->hw_ops
fields calls BUG_ON(). This patch returns the error to callers
instead of crashing. The issue was identified by a static
analysis tool, written by us.
Signed-off-by: Aditya Pakki <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions