From: Asai Thambi S P Date: Fri, 11 Jan 2013 13:17:12 +0000 (+0530) Subject: mtip32xx: fix for crash when the device surprise removed during rebuild X-Git-Tag: v3.8-rc7~11^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c49df378cde4ff64172483d593a1a5689c13a8;p=pandora-kernel.git mtip32xx: fix for crash when the device surprise removed during rebuild When rebuild is in progress, disk->queue is yet to be created. Surprise removing the device will call remove()-> del_gendisk(). del_gendisk() expect disk->queue be not NULL. Fix is to call put_disk() when disk_queue is NULL. Signed-off-by: Asai Thambi S P Signed-off-by: Jens Axboe --- Reading git-diff-tree failed