msm: camera: crm: Fix use-after-free for link
CRM gets link pointer from device private data and accesses it.
There is a chance that pointer gets deallocated while CRM is accessing
it. Static allocated memory will prevent use-after-free.
Change-Id: Ic339f0e569d2294a5adce14c8218cd55172d1ff9
Signed-off-by:
Trishansh Bhardwaj <tbhardwa@codeaurora.org>
Loading
Please register or sign in to comment