rxrpc: Return negative error code to kernel service

In rxrpc_kernel_recv_data(), when we return the error number incurred by a
failed call, we must negate it before returning it as it's stored as
positive (that's what we have to pass back to userspace).

Signed-off-by: David Howells <dhowells@redhat.com>
This commit is contained in:
David Howells 2016-10-06 08:11:50 +01:00
Родитель 94bc669efa
Коммит cf69207afa
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -652,7 +652,7 @@ excess_data:
goto out;
call_complete:
*_abort = call->abort_code;
ret = call->error;
ret = -call->error;
if (call->completion == RXRPC_CALL_SUCCEEDED) {
ret = 1;
if (size > 0)