summaryrefslogtreecommitdiff
path: root/src/v4l2/meson.build
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2022-05-20 13:49:19 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-23 10:50:16 +0300
commit2ebce32cf68189f790dc5580a2f6da90814009b1 (patch)
tree8e77ee7701a5c6ae086537a71a939c8dbcb0e9c0 /src/v4l2/meson.build
parent568865a6c14355d74349dea61fee06e09f11dfd7 (diff)
pipeline: raspberrypi: Fix possible null dereference
The freeBuffers() cleanup code calls into the IPA to unmap and free shared buffers. However, this function could be called before the IPA has opened (via registerCamera()), causing a segmentation fault. Fix this by guarding against calling the IPA if it has not been opened. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/v4l2/meson.build')
0 files changed, 0 insertions, 0 deletions