Mike Snitzer ffc41cf8db 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 <snitzer@gmail.com>
Cc: Paul Clements <paul.clements@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-04-02 15:28:19 -07:00
..
2008-02-08 09:22:30 -08:00
2007-10-29 11:33:05 +01:00
2005-04-16 15:20:36 -07:00
2008-03-13 13:11:43 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-02-06 10:41:01 -08:00
2008-03-04 16:35:12 -08:00
2005-04-16 15:20:36 -07:00
2008-02-14 20:58:04 -08:00
2008-01-28 10:36:42 +01:00