Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 43903cb6 authored by Deepak Kumar's avatar Deepak Kumar
Browse files

msm: kgsl: Access dma_buf_attachment pointer only if its valid



dma_buf_attach can return a negative error code wrapped
into a pointer on failure. Correct the error check and move
access to dma_buf_attachment pointer after the error check
to avoid accessing invalid pointer.

Change-Id: I77426fefb17370da5ed57878632bec8bacbc77a0
Signed-off-by: default avatarDeepak Kumar <dkumar@codeaurora.org>
parent 20135203
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment