]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bc25714e04e819a266df38434b24356e28de226
treee9664426eb8d9f17c01f8b79c26a2c655acd85a1
parentb6b61ac58dbc27871cf0de5c590ff8ae5b20206e
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