diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-02-16 22:04:41 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-24 18:41:26 +0100 |
commit | c7f7fd5b7ea114e0f85fc4f2a853f6564410588d (patch) | |
tree | 2e295b156c37a8d6ec6254ca6a1fed3db4b50118 /drivers/scsi/be2iscsi/be_iscsi.h | |
parent | [SCSI] iser: export addr and port (diff) | |
download | linux-c7f7fd5b7ea114e0f85fc4f2a853f6564410588d.tar.xz linux-c7f7fd5b7ea114e0f85fc4f2a853f6564410588d.zip |
[SCSI] be2iscsi: fix null ptr ref in conn get param
The ep_disconnect function could be freeing the ep
while beiscsi_conn_get_param is running. This has
the driver use the get ep param callback instead
of the get conn param to fix this.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.h b/drivers/scsi/be2iscsi/be_iscsi.h index 8950a702b9f4..9c532797c29e 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.h +++ b/drivers/scsi/be2iscsi/be_iscsi.h @@ -48,8 +48,8 @@ int beiscsi_conn_bind(struct iscsi_cls_session *cls_session, struct iscsi_cls_conn *cls_conn, uint64_t transport_fd, int is_leading); -int beiscsi_conn_get_param(struct iscsi_cls_conn *cls_conn, - enum iscsi_param param, char *buf); +int beiscsi_ep_get_param(struct iscsi_endpoint *ep, enum iscsi_param param, + char *buf); int beiscsi_get_host_param(struct Scsi_Host *shost, enum iscsi_host_param param, char *buf); |