msm: kgsl: Don't free memory if locking failed with error EADDRNOTAVAIL
While allocating a secure memory if locking fails with error code
EADDRNOTAVAIL then don't free the allocated memory either to pool
or buddy system as security state of the pages is unknown after
this failure which make this memory unusable.
Change-Id: Ia9dff942193d8d88871a15bc855264eb37fc7b56
Signed-off-by:
Deepak Kumar <dkumar@codeaurora.org>
Loading
Please register or sign in to comment