On 3/13/24 04:21, Guilherme G. Piccoli wrote:
The proper fix seems to still call scsi_proc_hostdir_rm() on dev_release(), but guard that with the state check for SHOST_CREATED; there is even a comment in scsi_host_dev_release() detailing that: such conditional is meant for cases where the SCSI host was allocated but there was no calls to {add,remove}_host(), like the usb-storage case.
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>