aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2020-01-30 22:15:25 -0800
committerLinus Torvalds <[email protected]>2020-01-31 10:30:39 -0800
commit3b82a051c10143639a378dcd12019f2353cc9054 (patch)
tree203276710640a066792e73a97d5072cf6a15a39a /lib/test_overflow.c
parent90f82cbfe502e96e602614ebbaf7725470c5208a (diff)
drivers/block/zram/zram_drv.c: fix error return codes not being returned in writeback_store
Currently when an error code -EIO or -ENOSPC in the for-loop of writeback_store the error code is being overwritten by a ret = len assignment at the end of the function and the error codes are being lost. Fix this by assigning ret = len at the start of the function and remove the assignment from the end, hence allowing ret to be preserved when error codes are assigned to it. Addresses Coverity ("Unused value") Link: http://lkml.kernel.org/r/[email protected] Fixes: a939888ec38b ("zram: support idle/huge page writeback") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Minchan Kim <[email protected]> Cc: Sergey Senozhatsky <[email protected]> Cc: Jens Axboe <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions