acrn-kernel/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
Makefile
zram.txt
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