Skip to content

media: bcm2835-unicam: Handle a repeated frame start with no end - #4873

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.15.yfrom
6by9:rpi-5.15.y-cam
Feb 7, 2022
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.15.yfrom
6by9:rpi-5.15.y-cam

Conversation

@6by9

@6by9 6by9 commented Feb 4, 2022

Copy link
Copy Markdown
Contributor

In the case of 2 frame starts being received with no frame end
between, the queued buffer held in next_frm was lost as the
pointer was overwritten with the dummy buffer.

Signed-off-by: Dave Stevenson dave.stevenson@raspberrypi.com

@6by9

6by9 commented Feb 4, 2022

Copy link
Copy Markdown
Contributor Author

@naushir As discussed earlier.

@6by9

6by9 commented Feb 4, 2022

Copy link
Copy Markdown
Contributor Author

Hang on, I've just had a kernel panic in unicam_isr, so something is still not right.

In the case of 2 frame starts being received with no frame end
between, the queued buffer held in next_frm was lost as the
pointer was overwritten with the dummy buffer.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
@6by9

6by9 commented Feb 4, 2022

Copy link
Copy Markdown
Contributor Author

Updated to check that cur_frm isn't NULL before putting it back on the list.

@pelwell
pelwell merged commit 2a1d12e into raspberrypi:rpi-5.15.y Feb 7, 2022
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Feb 7, 2022
kernel: DRM/KMS Pimoroni HyperPixel4 driver
See: raspberrypi/linux#4812

kernel: media: bcm2835-unicam: Handle a repeated frame start with no end
See: raspberrypi/linux#4873

kernel: net: phy: lan87xx: Decrease phy polling rate
See: raspberrypi/linux#4812
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Feb 7, 2022
kernel: DRM/KMS Pimoroni HyperPixel4 driver
See: raspberrypi/linux#4812

kernel: media: bcm2835-unicam: Handle a repeated frame start with no end
See: raspberrypi/linux#4873

kernel: net: phy: lan87xx: Decrease phy polling rate
See: raspberrypi/linux#4812
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants