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>
Thu, 6 Jun 2013 19:12:20 +0000 (12:12 -0700)
commit65c484609a3b25c35e4edcd5f2c38f98f5226093
treee9664426eb8d9f17c01f8b79c26a2c655acd85a1
parent39a9b8ac9333e4268ecff7da6c9d1ab3823ff243
zram: avoid double free in function zram_bvec_write()

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>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/zram/zram_drv.c