From: Tejun Heo Date: Mon, 12 Jun 2006 13:51:14 +0000 (+0900) Subject: [PATCH] libata: fix oops caused rescanning NULL sdev X-Git-Tag: v2.6.18-rc1~1079^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d01712698c7c52bc71f41192e864dccc90a1217d;p=pandora-kernel.git [PATCH] libata: fix oops caused rescanning NULL sdev Depending on timing, ata_scsi_dev_rescan() might encounter a device which is enabled but not yet attached to sdev. On such cases, the original code caused oops. This patch makes ata_scsi_dev_rescan() rescan only device which are attached to sdevs. While at it, properly indent leading comment and add description about how it's synchronized with sdev attach/detach. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed