From: Mike Snitzer Date: Wed, 2 Apr 2008 20:04:47 +0000 (-0700) Subject: nbd: prevent sock_xmit from attempting to use a NULL socket X-Git-Tag: v2.6.25-rc9~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc41cf8dbb1b895a87daf47d0e5bf6dfbfcab4c;p=pandora-kernel.git nbd: prevent sock_xmit from attempting to use a NULL socket NBD does not protect the nbd_device's socket from becoming NULL during receives. This closes a race with the NBD_CLEAR_SOCK ioctl (nbd-client -d) setting the nbd_device's socket to NULL right before NBD calls sock_xmit. Signed-off-by: Mike Snitzer Cc: Paul Clements Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed