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

Commit 25bed649 authored by Manikanta Sivapala's avatar Manikanta Sivapala Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Convert realloc to resource managed malloc to avoid memleak.



Whenever the probe is deferred, the resources that are allocated by
devm_kzalloc() will automatically get freed, but that are
allocated by krealloc() has to be freed explicitly.
In video driver currently memory related to regulator is allocated
using krealloc. Such memory is causing memory leak when probe is deferred.

Convert krealloc to devm_kzalloc to avoid memleak during probe defer.

Change-Id: I6653a6c204fb219a4a72e14904ff1c044a57b976
Signed-off-by: default avatarManikanta Sivapala <msivap@codeaurora.org>
parent f0331928
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