Skip to content
Commit 87e5e6da authored by Jens Axboe's avatar Jens Axboe
Browse files

uio: make import_iovec()/compat_import_iovec() return bytes on success



Currently these functions return < 0 on error, and 0 for success.
Change that so that we return < 0 on error, but number of bytes
for success.

Some callers already treat the return value that way, others need a
slight tweak.

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 61939b12
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment