Repository navigation
staging: rpivid: Fix crash when CMA alloc fails - #4152
Merged
pelwell merged 1 commit intoFeb 16, 2021
Merged
Conversation
If realloc to increase coeff size fails then attempt to re-allocate the original size. If that also fails then flag a fatal error to abort all further decode. Signed-off-by: John Cox <jc@kynesim.co.uk>
Contributor
|
We've been successfully testing this patch the last week in LibreELEC. It fixed the hard system lockup when playing the "Samsung Wonderland Two" demo from 4kmedia.org with 384MB CMA memory - we've now bumped the default CMA in LE to 512MB. The fix is probably even more important for RPiOS and other distributions running with the 256MB default CMA configuration as they are more likely to hit the limit with HEVC files. |
Contributor
|
Thanks, John & Hias. |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Feb 22, 2021
kernel: PiFi DAC overlays See: raspberrypi/linux#4154 kernel: staging: rpivid: Fix crash when CMA alloc fails See: raspberrypi/linux#4152 kernel: Imx477 long exposure control See: raspberrypi/linux#4150 kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711 See: raspberrypi/linux#4164 kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly See: raspberrypi/linux#4153 kernel: KMS VGA666 overlay See: raspberrypi/linux#4141 kernel: gpio-fsm: Fix shutdown timeout handling kernel: configs: Add various missing IPV6 modules See: raspberrypi/linux#4144
popcornmix
added a commit
to Hexxeh/rpi-firmware
that referenced
this pull request
Feb 22, 2021
kernel: PiFi DAC overlays See: raspberrypi/linux#4154 kernel: staging: rpivid: Fix crash when CMA alloc fails See: raspberrypi/linux#4152 kernel: Imx477 long exposure control See: raspberrypi/linux#4150 kernel: configs: Change CONFIG_BLK_DEV_NVME=y for 2711 See: raspberrypi/linux#4164 kernel: Some fixes to make imx290/imx327 exposure and vblank updates work correctly See: raspberrypi/linux#4153 kernel: KMS VGA666 overlay See: raspberrypi/linux#4141 kernel: gpio-fsm: Fix shutdown timeout handling kernel: configs: Add various missing IPV6 modules See: raspberrypi/linux#4144
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If realloc to increase coeff size fails then attempt to re-allocate
the original size. If that also fails then flag a fatal error to abort
all further decode.
Signed-off-by: John Cox jc@kynesim.co.uk