summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mediatek
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2023-10-25 13:22:56 +0300
committerMauro Carvalho Chehab <mchehab@kernel.org>2023-11-23 20:59:05 +0300
commit3591c53ae9eccafbeffa9ae2d1899873a5076a87 (patch)
treee8bfe3481b7fc5b7dfc6956540c81fc5046fdf80 /drivers/media/platform/mediatek
parent34dfd1dd52660dc85d43c92c2cb8029efb2bb8f3 (diff)
downloadlinux-3591c53ae9eccafbeffa9ae2d1899873a5076a87.tar.xz
media: v4l: subdev: Return NULL from pad access functions on error
Return NULL from sub-device pad state access functions (v4l2_subdev_state_get_{format,crop,compose}) for non-existent pads. While this behaviour differs from older set of pad state information access functions, we've had a WARN_ON() there for a long time and callers also do validate the pad index nowadays. Therefore problems are not expected. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/media/platform/mediatek')
0 files changed, 0 insertions, 0 deletions