Fix use after free in scsi_host_put
put_device will call release and free the host structure (which contains both the generic device and the host class). We must do the class_device_put() *before* the put_device().
Showing
Please register or sign in to comment