lkml.org 
[lkml]   [2021]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: [PATCH v4 1/8] optee: Fix memory leak when failing to register shm pages
    On Thu, Jun 10, 2021 at 11:09 PM Tyler Hicks
    <tyhicks@linux.microsoft.com> wrote:
    >
    > Free the previously allocated pages when we encounter an error condition
    > while attempting to register the pages with the secure world.
    >
    > Fixes: a249dd200d03 ("tee: optee: Fix dynamic shm pool allocations")
    > Fixes: 5a769f6ff439 ("optee: Fix multi page dynamic shm pool alloc")
    > Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
    > ---
    > drivers/tee/optee/shm_pool.c | 12 ++++++++++--
    > 1 file changed, 10 insertions(+), 2 deletions(-)

    Looks good.

    Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>

    \
     
     \ /
      Last update: 2021-06-11 11:06    [W:5.589 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site