Re: [PATCH -next] mtd: docg3: Fix a possible memory leak of mtd->name

2019-01-23 Thread YueHaibing
On 2019/1/23 16:46, Boris Brezillon wrote: > On Wed, 23 Jan 2019 14:59:43 +0800 > YueHaibing wrote: > >> In case DOC_CHIPID_G3, mtd->name should be freed in the >> err handling path, which is alloced by kasprintf. >> >> Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support") >>

Re: [PATCH -next] mtd: docg3: Fix a possible memory leak of mtd->name

2019-01-23 Thread Boris Brezillon
On Wed, 23 Jan 2019 14:59:43 +0800 YueHaibing wrote: > In case DOC_CHIPID_G3, mtd->name should be freed in the > err handling path, which is alloced by kasprintf. > > Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support") > Signed-off-by: YueHaibing > --- > drivers/mtd/devices/docg3.c

[PATCH -next] mtd: docg3: Fix a possible memory leak of mtd->name

2019-01-22 Thread YueHaibing
In case DOC_CHIPID_G3, mtd->name should be freed in the err handling path, which is alloced by kasprintf. Fixes: ae9d4934b2d7 ("mtd: docg3: add multiple floor support") Signed-off-by: YueHaibing --- drivers/mtd/devices/docg3.c | 1 + 1 file changed, 1 insertion(+) diff --git