diff options
author | Liu Bo <[email protected]> | 2017-11-03 11:24:44 -0600 |
---|---|---|
committer | Shaohua Li <[email protected]> | 2017-11-03 11:29:50 -0700 |
commit | 39b4954c0a1556f8f7f1fdcf59a227117fcd8a0b (patch) | |
tree | 91ea4eb6e8b4cbe512ddade95f43651d3a873d34 /lib/dma-debug.c | |
parent | b90f6ff080c52e2f05364210733df120e3c4e597 (diff) |
badblocks: fix wrong return value in badblocks_set if badblocks are disabled
MD's rdev_set_badblocks() expects that badblocks_set() returns 1 if
badblocks are disabled, otherwise, rdev_set_badblocks() will record
superblock changes and return success in that case and md will fail to
report an IO error which it should.
This bug has existed since badblocks were introduced in commit
9e0e252a048b ("badblocks: Add core badblock management code").
Signed-off-by: Liu Bo <[email protected]>
Acked-by: Guoqing Jiang <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions