msm: ocmem: Update error handling in function __sched_grow
When zone allocation fails, no region has been created. Thus
the label "internal_error" should not call destroy_region. When
create_region fails, region is NULL, thus calling destroy_region
will result in NULL pointer dereferencing.
Change-Id: Ic30fc4f6bda64e85b395f5a3a8c24b66ced6e86c
Signed-off-by:
Neeti Desai <neetid@codeaurora.org>
Loading
Please register or sign in to comment