diff options
| author | zhendong chen <[email protected]> | 2014-12-17 06:37:04 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2014-12-17 17:31:13 +0000 |
| commit | 5164bece1673cdf04782f8ed3fba70743700f5da (patch) | |
| tree | 98355028eac1fb5f41623c95a6f1382154a240af /lib/string_helpers.c | |
| parent | dm thin: fix crash by initializing thin device's refcount and completion earlier (diff) | |
| download | kernel-5164bece1673cdf04782f8ed3fba70743700f5da.tar.gz kernel-5164bece1673cdf04782f8ed3fba70743700f5da.zip | |
dm: fix missed error code if .end_io isn't implemented by target_type
In bio-based DM's clone_endio(), when target_type doesn't implement
.end_io (e.g. linear) r will be always be initialized 0. So if a
WRITE SAME bio fails WRITE SAME will not be disabled as intended.
Fix this by initializing r to error, rather than 0, in clone_endio().
Signed-off-by: Alex Chen <[email protected]>
Signed-off-by: Mike Snitzer <[email protected]>
Fixes: 7eee4ae2db ("dm: disable WRITE SAME if it fails")
Cc: [email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
