aboutsummaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2013-08-12 15:13:55 +0900
committerMister Oyster <oysterized@gmail.com>2016-12-11 12:53:32 +0100
commit71dbd694542a870f1d1be2cb2010cd60c159a1d0 (patch)
treed498e833334b7bb5601ab76016b5306faa7ef283 /include/linux/blkdev.h
parent13e93703a586cb27f450067af612750a6fe2bfc3 (diff)
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 <ngupta@vflare.org> Cc: Jiang Liu <jiang.liu@huawei.com> Cc: stable@vger.kernel.org Signed-off-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/blkdev.h')
0 files changed, 0 insertions, 0 deletions