diff options
author | 2009-04-05 16:26:41 -0500 | |
---|---|---|
committer | 2009-04-05 16:54:52 -0500 | |
commit | 742b11a7ec60faa25d76c95c268041ab215c25ad (patch) | |
tree | 86305d4b295f859d89fedd27a5f54ad8b029e5c3 /arch/x86/kernel | |
parent | net/9p: set correct stat size when sending Twstat messages (diff) | |
download | wireguard-linux-742b11a7ec60faa25d76c95c268041ab215c25ad.tar.xz wireguard-linux-742b11a7ec60faa25d76c95c268041ab215c25ad.zip |
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: Latchesar Ionkov <lucho@ionkov.net>
Reviewed-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'arch/x86/kernel')
0 files changed, 0 insertions, 0 deletions