Douglas Gilbert wrote:
> 
> Noticed that in the case of sr that exit_sr() is
> called _before_ sr_detach(). That makes sr_detach()
> useless and leaky. Same problem with sg (and I guess
> sd and st). Tests done on lk 2.4.0 .

False alarm.

It is not nearly as bad as it looks:-) The exit_sr()
function calls scsi_unregister_module() which calls
back sr_detach() for each attached device. Hence
the call to scsi_unregister_module() should (and does)
appear early in exit_sr() before anything "dangerous" 
is done.

Doug Gilbert
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]

Reply via email to