Skip to content

staging: vcsm-cma: Fix memory leak from not detaching dmabuf - #4277

Merged
pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
davidplowman:vcsm-cma-fix
Apr 12, 2021
Merged

pelwell merged 1 commit into
raspberrypi:rpi-5.10.yfrom
davidplowman:vcsm-cma-fix

Conversation

@davidplowman

Copy link
Copy Markdown
Contributor

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

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>
@davidplowman

Copy link
Copy Markdown
Contributor Author

@6by9 @naushir
This is Dave's patch for some kernel memory leaks from the 5.4 branch but which never made it onto 5.10.

@6by9

6by9 commented Apr 12, 2021

Copy link
Copy Markdown
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

@pelwell
pelwell merged commit 41aaea1 into raspberrypi:rpi-5.10.y Apr 12, 2021
@davidplowman
davidplowman deleted the vcsm-cma-fix branch April 12, 2021 20:47
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
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.

3 participants