diff options
| author | Dave Stevenson <[email protected]> | 2025-04-23 10:47:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2025-04-25 14:14:10 +0000 |
| commit | 98698ca0e58734bc5c1c24e5bbc7429f981cd186 (patch) | |
| tree | ff5be1060239245bd9bcd56da869ad50a5bedffa /lib/netdev-notifier-error-inject.c | |
| parent | Linux 6.15-rc1 (diff) | |
| download | kernel-98698ca0e58734bc5c1c24e5bbc7429f981cd186.tar.gz kernel-98698ca0e58734bc5c1c24e5bbc7429f981cd186.zip | |
staging: bcm2835-camera: Initialise dev in v4l2_dev
Commit 42a2f6664e18 ("staging: vc04_services: Move global g_state to
vchiq_state") changed mmal_init to pass dev->v4l2_dev.dev to
vchiq_mmal_init, however nothing iniitialised dev->v4l2_dev, so we got
a NULL pointer dereference.
Set dev->v4l2_dev.dev during bcm2835_mmal_probe. The device pointer
could be passed into v4l2_device_register to set it, however that also
has other effects that would need additional changes.
Fixes: 42a2f6664e18 ("staging: vc04_services: Move global g_state to vchiq_state")
Cc: [email protected]
Signed-off-by: Dave Stevenson <[email protected]>
Reviewed-by: Stefan Wahren <[email protected]>
Link: https://lore.kernel.org/r/20250423-staging-bcm2835-v4l2-fix-v2-1-3227f0ba4700@raspberrypi.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions
