[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <x49a8xx1xx7.fsf@segfault.boston.devel.redhat.com>
Date: Fri, 24 Apr 2015 09:03:00 -0400
From: Jeff Moyer <jmoyer@...hat.com>
To: Chao Yu <chao2.yu@...sung.com>
Cc: axboe@...nel.dk, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] elevator: fix memory leak in ->elevator_init_fn
Chao Yu <chao2.yu@...sung.com> writes:
> In ->elevator_init_fn, if we fail to call kzalloc_node, we should release
> elevator queue space which is allocated previously, otherwise it will cause
> memory leak.
>
> Signed-off-by: Chao Yu <chao2.yu@...sung.com>
Acked-by: Jeff Moyer <jmoyer@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists