zram: avoid double free in function zram_bvec_write()
authorJiang Liu <liuj97@gmail.com>
Thu, 6 Jun 2013 16:07:25 +0000 (00:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Aug 2013 01:35:23 +0000 (18:35 -0700)
commitf7b071d02492426c5b5c1086fe082ba7a0de6de8
tree791e197cc66b9de0e826e798f2a5e854940a7efc
parent916c68df544806585f63cc157149b9d9559ad500
zram: avoid double free in function zram_bvec_write()

commit 65c484609a3b25c35e4edcd5f2c38f98f5226093 upstream.

When doing a patial write and the whole page is filled with zero,
zram_bvec_write() will free uncmem twice.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c