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)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 12 Apr 2021 19:39:13 +0000 (20:39 +0100)
commit41aaea1d7cb9548646858f8ff8e65ad53b27c66c
tree51bdd1b32d02a5172613c12e2d13091968c379d3
parentc4177d50af0072f6a2d1859a9d93b53ab600c420
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