[PATCH] Register scsi devices after naming them
scsi_add_lun doesn't set sdp->devfs_name before calling scsi_register_device(). Since scsi_register_device calls down to things like sd_probe, which do try to use sdp->devfs_name, things fail. Just an easy change, moving the sdp->devfs_name creation before calling scsi_register_device().
Showing
Please register or sign in to comment