On Mon, Oct 14, 2019 at 08:43:05PM -0400, Sasha Levin wrote: > On Mon, Oct 14, 2019 at 04:59:31PM +0200, gregkh@xxxxxxxxxxxxxxxxxxx wrote: > > > > The patch below does not apply to the 4.14-stable tree. > > If someone wants it applied there, or to any other stable or longterm > > tree, then please email the backport, including the original git commit > > id to <stable@xxxxxxxxxxxxxxx>. > > > > thanks, > > > > greg k-h > > > > ------------------ original commit in Linus's tree ------------------ > > > > > From 5bdea6060618cfcf1459dca137e89aee038ac8b9 Mon Sep 17 00:00:00 2001 > > From: Navid Emamdoost <navid.emamdoost@xxxxxxxxx> > > Date: Sun, 29 Sep 2019 22:09:45 -0500 > > Subject: [PATCH] Staging: fbtft: fix memory leak in fbtft_framebuffer_alloc > > > > In fbtft_framebuffer_alloc the error handling path should take care of > > releasing frame buffer after it is allocated via framebuffer_alloc, too. > > Therefore, in two failure cases the goto destination is changed to > > address this issue. > > > > Fixes: c296d5f9957c ("staging: fbtft: core support") > > Signed-off-by: Navid Emamdoost <navid.emamdoost@xxxxxxxxx> > > Reviewed-by: Dan Carpenter <dan.carpenter@xxxxxxxxx> > > Cc: stable <stable@xxxxxxxxxxxxxxx> > > Link: https://lore.kernel.org/r/20190930030949.28615-1-navid.emamdoost@xxxxxxxxx > > Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> > > Conflicts due to 333c7b940526b ("staging: fbtft: Fixes some alignment > issues - Style"). Fixed up and queued for 4.14-4.4. Thanks for fixing this one, and the other failures up. greg k-h