summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiang Liu <liuj97@gmail.com>2013-06-07 00:07:24 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-11 18:35:23 -0700
commit916c68df544806585f63cc157149b9d9559ad500 (patch)
tree9681e2d1e103dd1610c72c6ace1d25c93773c664 /include
parent6349a112f4059ab32c1bb2fb644a2e63a620aeb5 (diff)
downloadlinux-3.10-916c68df544806585f63cc157149b9d9559ad500.tar.gz
linux-3.10-916c68df544806585f63cc157149b9d9559ad500.tar.bz2
linux-3.10-916c68df544806585f63cc157149b9d9559ad500.zip
zram: destroy all devices on error recovery path in zram_init()
commit 39a9b8ac9333e4268ecff7da6c9d1ab3823ff243 upstream. 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@huawei.com> Acked-by: Minchan Kim <minchan@kernel.org> Acked-by: Jerome Marchand <jmarchan@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions