aboutsummaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorSunghan Suh <sunghan.suh@samsung.com>2013-07-03 20:10:05 +0900
committerMister Oyster <oysterized@gmail.com>2016-12-11 12:53:30 +0100
commit20ed89e1a16f98ce32ac218aeaa75e30544124a2 (patch)
tree48bcc4afbb5495acbf0c92a594b90d197a6befae /include/linux/errqueue.h
parentf62171120a8057579fd864f1a303e39326cfad21 (diff)
zram: prevent data loss in error cases of function zram_bvec_write()
In function zram_bvec_write(), previous data at the index is already freed by function zram_free_page(). When failed to compress or zs_malloc, there is no way to restore old data. Therefore, free previous data when it's about to update. Also, no need to check whether table is not empty outside of function zram_free_page(), because the function properly checks inside. Signed-off-by: Sunghan Suh <sunghan.suh@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions