diff options
Diffstat (limited to 'drivers/block/loop.c')
-rw-r--r-- | drivers/block/loop.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 3d806820280e..0d567397c254 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -372,7 +372,8 @@ do_lo_receive(struct loop_device *lo, | |||
372 | 372 | ||
373 | if (retval < 0) | 373 | if (retval < 0) |
374 | return retval; | 374 | return retval; |
375 | 375 | if (retval != bvec->bv_len) | |
376 | return -EIO; | ||
376 | return 0; | 377 | return 0; |
377 | } | 378 | } |
378 | 379 | ||