diff options
Diffstat (limited to '')
-rw-r--r-- | drivers/md/dm-writecache.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/md/dm-writecache.c b/drivers/md/dm-writecache.c index 64d7a798244a..e89868cf7d98 100644 --- a/drivers/md/dm-writecache.c +++ b/drivers/md/dm-writecache.c @@ -1545,10 +1545,13 @@ done: return DM_MAPIO_SUBMITTED; case WC_MAP_ERROR: - default: wc_unlock(wc); bio_io_error(bio); return DM_MAPIO_SUBMITTED; + + default: + BUG(); + return -1; } } |