From: Minchan Kim Date: Mon, 12 Aug 2013 06:13:55 +0000 (+0900) Subject: zram: fix invalid memory access X-Git-Tag: v3.12-rc1~183^2~286 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b86ab9cc29fcd435cde9378c3b9ffe8b5c76128;p=pandora-kernel.git zram: fix invalid memory access [1] tried to fix invalid memory access on zram->disk but it didn't fix properly because get_disk failed during module exit path. Actually, we don't need to reset zram->disk's capacity to zero in module exit path so that this patch introduces new argument "reset_capacity" on zram_reset_divice and it only reset it when reset_store is called. [1] 6030ea9b, zram: avoid invalid memory access in zram_exit() Cc: Nitin Gupta Cc: Jiang Liu Cc: stable@vger.kernel.org Signed-off-by: Minchan Kim Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed