staging: vcsm-cma: Fix memory leak from not detaching dmabuf
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 4 Nov 2020 18:54:20 +0000 (18:54 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:13 +0000 (16:04 +0000)
commite44b7d4b91d4ef6109dc550a0f8b12c0feb5a194
tree6b690dc90524da2b3a716a7af6b3665c4e2044b4
parent553f21a44c3d5c0d41ca3aeaeb5e4670d7fe2d48
staging: vcsm-cma: Fix memory leak from not detaching dmabuf

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>
drivers/staging/vc04_services/vc-sm-cma/vc_sm.c