fix session release module reference
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 fix session release module reference
James,
Attached is a mail and patch from the iser maintainer that fixes a bug in the patchset we just sent where we free a struct then try to reference it later. The patch was made over scsi-misc. If it is not too late it could go into rc1. If it is too late then I will resend it with my other bugfixe patches we had queued up and are testing.
Signed-off-by Mike Christie <[email protected]>
Quoted 4 lines · Or Gerlitz
Mike said he might be busy these days, so i need some help from people on this list to validate that indeed the patches pushed to Linus break iscsi in
session_destroyso we can send upstream a fixing patch (eg in the spirit of the attached).
drivers/scsi/libiscsi.c +2 -1
@@ -1322,6 +1322,7 @@ void iscsi_session_teardown(struct iscsi {struct Scsi_Host *shost =iscsi_session_to_shost (cls_session);struct iscsi_session *session =iscsi_hostdata (shost->hostdata); +struct module *owner = cls_session->transport->owner;scsi_remove_host (shost);
@@ -1330,7 +1331,7 @@ void iscsi_session_teardown(struct iscsiiscsi_destroy_session (cls_session);scsi_host_put (shost); -module_put (cls_session->transport->owner); +module_put (owner); }EXPORT_SYMBOL_GPL (iscsi_session_teardown);