[SCSI] iscsi class, qla4xxx: fix sess/conn refcounting when find fns are used
authorMike Christie <[email protected]>
Mon, 6 May 2013 17:06:56 +0000 (12:06 -0500)
committerJames Bottomley <[email protected]>
Fri, 10 May 2013 14:47:53 +0000 (07:47 -0700)
commit8526cb114f771851d84425d85d8735a6e0816ba2
treedabc65e70ea5ca635f9fae207da3e717f7a2bf87
parentaa9f8328fc51460e15da129caf622b6560fa8c99
[SCSI] iscsi class, qla4xxx: fix sess/conn refcounting when find fns are used

This fixes a bug where the iscsi class/driver did not do a put_device
when a sess/conn device was found. This also simplifies the interface
by not having to pass in some arguments that were duplicated and did
not need to be exported.

Reported-by: Zhao Hongjiang <[email protected]>
Signed-off-by: Mike Christie <[email protected]>
Acked-by: Vikas Chaudhary <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
drivers/scsi/qla4xxx/ql4_os.c
drivers/scsi/scsi_transport_iscsi.c
include/scsi/scsi_transport_iscsi.h