Revision 053965c7 block/raw-posix.c

b/block/raw-posix.c
391 391
                    size = ALIGNED_BUFFER_SIZE;
392 392

  
393 393
                ret = raw_pread_aligned(bs, offset, s->aligned_buf, size);
394
                if (ret < 0)
394
                if (ret < 0) {
395 395
                    return ret;
396
                } else if (ret == 0) {
397
                    fprintf(stderr, "raw_pread: read beyond end of file\n");
398
                    abort();
399
                }
396 400

  
397 401
                size = ret;
398 402
                if (size > count)

Also available in: Unified diff