diff options
author | Chao Yu <chao2.yu@samsung.com> | 2014-08-29 15:18:37 -0700 |
---|---|---|
committer | Andreas Blaesius <skate4life@gmx.de> | 2016-06-05 21:21:49 +0200 |
commit | 2fb5181ae1e7e993d043c968b714e226907e165b (patch) | |
tree | 7e3930fce3d4182b0c7baeb24789654171809143 /lib/ts_kmp.c | |
parent | 824f655ca9da325e8f3813e034d3cb5d203a5204 (diff) | |
download | kernel_samsung_espresso10-2fb5181ae1e7e993d043c968b714e226907e165b.zip kernel_samsung_espresso10-2fb5181ae1e7e993d043c968b714e226907e165b.tar.gz kernel_samsung_espresso10-2fb5181ae1e7e993d043c968b714e226907e165b.tar.bz2 |
zram: fix incorrect stat with failed_reads
Since we allocate a temporary buffer in zram_bvec_read to handle partial
page operations in commit 924bd88d703e ("Staging: zram: allow partial
page operations"), our ->failed_reads value may be incorrect as we do
not increase its value when failing to allocate the temporary buffer.
Let's fix this issue and correct the annotation of failed_reads.
Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Acked-by: Jerome Marchand <jmarchan@redhat.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/ts_kmp.c')
0 files changed, 0 insertions, 0 deletions