linux-stable/drivers/staging/zram
Rashika Kheria 1b672224d1 Staging: zram: Fix memory leak by refcount mismatch
As suggested by Minchan Kim and Jerome Marchand "The code in reset_store
get the block device (bdget_disk()) but it does not put it (bdput()) when
it's done using it. The usage count is therefore incremented but never
decremented."

This patch also puts bdput() for all error cases.

Acked-by: Minchan Kim <minchan@kernel.org>
Acked-by: Jerome Marchand <jmarchan@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-11-25 09:14:29 -08:00
..
Kconfig staging: Add angle bracket before and after the URL 2013-01-07 14:56:04 -08:00
Makefile zram: remove zram_sysfs file (v2) 2013-06-24 15:59:03 -07:00
zram.txt zram: force disksize setting before using zram 2013-02-03 17:52:49 -08:00
zram_drv.c Staging: zram: Fix memory leak by refcount mismatch 2013-11-25 09:14:29 -08:00
zram_drv.h zram: don't grab mutex in zram_slot_free_noity 2013-08-12 15:25:00 -07:00