We really shouldn't require workaround for this in every SCSI driver. scsi_scan_host_selected already makes sure never to scan above shost->max_channel. Could it be that you don't have that one set properly in the srp driver? It not we'll need to debug why it happens instead of adding hacks like this. -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html