[PATCH v2 04/10] zram: destroy all devices on error recovery path in zram_init()

Minchan Kim minchan at kernel.org
Wed Jun 5 06:40:12 UTC 2013


On Wed, Jun 05, 2013 at 12:06:02AM +0800, Jiang Liu wrote:
> On error recovery path of zram_init(), it leaks the zram device object
> causing the failure. So change create_device() to free allocated
> resources on error path.
> 
> Signed-off-by: Jiang Liu <jiang.liu at huawei.com>
> Cc: stable at vger.kernel.org
Acked-by: Minchan Kim <minchan at kernel.org>

-- 
Kind regards,
Minchan Kim



More information about the devel mailing list