Skip to content
Commit 742b11a7 authored by Latchesar Ionkov's avatar Latchesar Ionkov Committed by Eric Van Hensbergen
Browse files

net/9p: return error when p9_client_stat fails



p9_client_stat function doesn't return correct value if it fails.
p9_client_stat should return ERR_PTR of the error value when it fails.
Instead, it always returns a value to the allocated p9_wstat struct even
when it is not populated correctly.

This patch makes p9_client_stat to handle failure correctly.

Signed-off-by: default avatarLatchesar Ionkov <lucho@ionkov.net>
Reviewed-by: default avatarEric Van Hensbergen <ericvh@gmail.com>
parent 453ed90d
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