buf: mprove error code

This commit is contained in:
Thomas Schoebel-Theuer 2022-07-27 10:16:00 +02:00
parent eb6d6ad9d0
commit 3a638f0a79
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ static int _buf_make_io(struct buf_brick *brick, struct buf_head *bf, void *star
ref_flags, start_pos, start_len, bf->bf_flags);
atomic_set(&bf->bf_io_count, 0);
status = -ENOMEM;
status = -EINVAL;
input = brick->inputs[0];
while (start_len > 0) {