Commit 534e11f
committed
staging: bcm2835-camera: Initialise dev in v4l2_dev
Commit 42a2f66 ("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: 42a2f66 ("staging: vc04_services: Move global g_state to vchiq_state")
Signed-off-by: Dave Stevenson <[email protected]>1 parent dd03775 commit 534e11f
File tree
1 file changed
+1
-0
lines changed- drivers/staging/vc04_services/bcm2835-camera
1 file changed
+1
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1909 | 1909 | | |
1910 | 1910 | | |
1911 | 1911 | | |
| 1912 | + | |
1912 | 1913 | | |
1913 | 1914 | | |
1914 | 1915 | | |
| |||
0 commit comments