msm: kgsl: Fix ref counting error for syncsource object
In kgsl_ioctl_syncsource_create_fence(), when the return value is -ENOMEM or -EBADF, an extra reference count is put back for syncsource during cleanup. This results in an early free of syncsource object. This can be fixed by avoiding the extra kgsl_syncsource_put() during the cleanup. Change-Id: I4ecbcd04dae6edb773b7979f68c9658a971d9d5d Signed-off-by:Akhil P Oommen <akhilpo@codeaurora.org> Signed-off-by:
Urvashi Agrawal <urvaagra@codeaurora.org>
Loading
Please register or sign in to comment