diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-11 21:06:41 +0300 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-03-11 21:06:41 +0300 |
commit | fba91afbec2c004e2c8733ae9e0ca6998e962c64 (patch) | |
tree | 025d7c07b8d41d4e5752fb9da7396a0b596856da /net/sunrpc/xprt.c | |
parent | d7371c41b0cda782256b1df759df4e8d4724584c (diff) | |
download | linux-fba91afbec2c004e2c8733ae9e0ca6998e962c64.tar.xz |
SUNRPC: Fix an Oops due to socket not set up yet...
We can Oops in both xs_udp_send_request() and xs_tcp_send_request() if the
call to xs_sendpages() returns an error due to the socket not yet being
set up.
Deal with that situation by returning a new error: ENOTSOCK, so that we
know to avoid dereferencing transport->sock.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
0 files changed, 0 insertions, 0 deletions