diff options
Diffstat (limited to 'common/block.c')
-rw-r--r-- | common/block.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/block.c b/common/block.c index 437dc95cea..5983171635 100644 --- a/common/block.c +++ b/common/block.c @@ -245,7 +245,7 @@ static int block_put(struct block_device *blk, const void *buf, int block) data = block_get(blk, block); if (IS_ERR(data)) - BUG(); + return PTR_ERR(data); memcpy(data, buf, 1 << blk->blockbits); |