[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e02f5626-81be-d949-d2b4-7f70820b409c@gmail.com>
Date: Sat, 11 Mar 2023 23:19:18 +0300
From: Sergei Shtylyov <sergei.shtylyov@...il.com>
To: Ondrej Zary <linux@...y.sk>,
Damien Le Moal <damien.lemoal@...nsource.wdc.com>
Cc: Dan Carpenter <error27@...il.com>, Christoph Hellwig <hch@....de>,
Sergey Shtylyov <s.shtylyov@....ru>, linux-ide@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] pata_parport: fix possible memory leak
On 3/11/23 9:51 PM, Ondrej Zary wrote:
> When ida_alloc() fails, "pi" is not freed although the misleading
> comment says otherwise.
> Move the ida_alloc() call up so we really don't have to free it.
>
> Reported-by: kernel test robot <lkp@...el.com>
> Reported-by: Dan Carpenter <error27@...il.com>
> Link: https://lore.kernel.org/r/202303111822.IHNchbkp-lkp@intel.com/
> Signed-off-by: Ondrej Zary <linux@...y.sk>
Reviewed-by: Sergey Shtylyov <s.shtylyov@....ru>
[...]
MBR, Sergey
Powered by blists - more mailing lists