staging: vcsm-cma: Fixup the alloc code handling of kernel_id
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Wed, 22 May 2019 14:40:37 +0000 (15:40 +0100)
committerpopcornmix <popcornmix@gmail.com>
Thu, 13 Jun 2019 10:54:32 +0000 (11:54 +0100)
commit30dc1edad5a763ec8504a7f92f45a821f57f2c4d
tree3bf9eaa600395b5d341efd2bb56268153f5c9d79
parent91f1b62804c6aedc55c12641a32acecf229bed71
staging: vcsm-cma: Fixup the alloc code handling of kernel_id

The allocation code had been copied in from an old branch prior
to having added the IDR for 64bit support. It was therefore pushing
a pointer into the kernel_id field instead of an IDR handle, the
lookup therefore failed, and we never released the buffer.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vc-sm-cma/vc_sm.c