Repository navigation
staging: vcsm-cma: Fix memory leak from not detaching dmabuf - #4277
Merged
Merged
Conversation
When importing there was a missing call to detach the buffer, so each import leaked the sg table entry. Actually the release process for both locally allocated and imported buffers is identical, so fix them to both use the same function. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Contributor
Author
Contributor
|
I'm deferring to David P's testing here. The cherry-pick wasn't clean due to kmap and kunmap having been dropped from the dmabuf API, otherwise it's a straight lift of 2ae9829 |
popcornmix
added a commit
to raspberrypi/firmware
that referenced
this pull request
Apr 19, 2021
kernel: Update Allo Piano Plus DAC driver See: raspberrypi/linux#4258 kernel: sc16is7xx: Defer probe if device read fails See: raspberrypi/linux#4272 kernel: Codec Fixes for the tlv320aic32x4 codec on 5.10 See: raspberrypi/linux#4273 kernel: HDR improvements See: raspberrypi/linux#4268 kernel: staging: vcsm-cma: Fix memory leak from not detaching dmabuf See: raspberrypi/linux#4277 kernel: vc4/kms: vc4_plane: Support 2020 colourspace for yuv planes See: raspberrypi/linux#4276 kernel: Prevent A4tech FHD 1080p webcams from being suspended automatically See: raspberrypi/linux#4283 kernel: overlays: ghost-amp: Add DAC mute control
popcornmix
added a commit
to Hexxeh/rpi-firmware
that referenced
this pull request
Apr 19, 2021
kernel: Update Allo Piano Plus DAC driver See: raspberrypi/linux#4258 kernel: sc16is7xx: Defer probe if device read fails See: raspberrypi/linux#4272 kernel: Codec Fixes for the tlv320aic32x4 codec on 5.10 See: raspberrypi/linux#4273 kernel: HDR improvements See: raspberrypi/linux#4268 kernel: staging: vcsm-cma: Fix memory leak from not detaching dmabuf See: raspberrypi/linux#4277 kernel: vc4/kms: vc4_plane: Support 2020 colourspace for yuv planes See: raspberrypi/linux#4276 kernel: Prevent A4tech FHD 1080p webcams from being suspended automatically See: raspberrypi/linux#4283 kernel: overlays: ghost-amp: Add DAC mute control
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.
When importing there was a missing call to detach the buffer,
so each import leaked the sg table entry.
Actually the release process for both locally allocated and
imported buffers is identical, so fix them to both use the same
function.
Signed-off-by: Dave Stevenson dave.stevenson@raspberrypi.com