[PATCH v2 04/10] zram: destroy all devices on error recovery path in zram_init()
Jerome Marchand
jmarchan at redhat.com
Wed Jun 5 10:40:15 UTC 2013
On 06/04/2013 06:06 PM, 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: Jerome Marchand <jmarchan at redhat.com>
More information about the devel
mailing list