Re: [PATCH] elevator: fix memory leak in ->elevator_init_fn

From: Jeff Moyer
Date: Fri Apr 24 2015 - 09:03:15 EST


Chao Yu <chao2.yu@xxxxxxxxxxx> 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@xxxxxxxxxxx>

Acked-by: Jeff Moyer <jmoyer@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/