From: Trond Myklebust Date: Wed, 11 Mar 2009 18:06:41 +0000 (-0400) Subject: SUNRPC: Fix an Oops due to socket not set up yet... X-Git-Tag: v2.6.29~43^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fba91afbec2c004e2c8733ae9e0ca6998e962c64;p=pandora-kernel.git 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 --- Reading git-diff-tree failed