From: Ian Campbell Date: Tue, 19 May 2009 06:25:48 +0000 (+0200) Subject: xen/blkfront: allow xenbus state transition to Closing->Closed when not Connected X-Git-Tag: v2.6.30-rc7~17^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28afea5b2ffaa48f4f43d22ae8edcc384c05df80;p=pandora-kernel.git xen/blkfront: allow xenbus state transition to Closing->Closed when not Connected This situation can occur when attempting to attach a block device whose backend is an empty physical CD-ROM driver. The backend in this case will go directly from the Initialising state to Closing->Closed. Previously this would result in a NULL pointer deref on info->gd (xenbus_dev_fatal does not return as a1a15ac5 seems to expect) Cc: stable@kernel.org Signed-off-by: Ian Campbell Acked-by: Jeremy Fitzhardinge Signed-off-by: Jens Axboe --- Reading git-diff-tree failed