diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-05-11 18:24:44 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-05-16 21:08:42 -0400 |
commit | dd6e1f71b785a6ac2511e2ddb86315f292873e59 (patch) | |
tree | bec943b26820ac242036b859576a885bf57b6afc | |
parent | 4fa8324461b824eaea9b6695464395710fe20c44 (diff) |
scsi: libfc: fix incorrect variable assignment
Previous assignment was causing the use of the uninitialized variable
_explan_ inside fc_seq_ls_rjt() function, which in this particular case
is being called by fc_seq_els_rsp_send().
[mkp: fixed typo]
Addresses-Coverity-ID: 1398125
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index b44c3136eb51..520325867e2b 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -1422,7 +1422,7 @@ static void fc_rport_recv_rtv_req(struct fc_rport_priv *rdata, | |||
1422 | fp = fc_frame_alloc(lport, sizeof(*rtv)); | 1422 | fp = fc_frame_alloc(lport, sizeof(*rtv)); |
1423 | if (!fp) { | 1423 | if (!fp) { |
1424 | rjt_data.reason = ELS_RJT_UNAB; | 1424 | rjt_data.reason = ELS_RJT_UNAB; |
1425 | rjt_data.reason = ELS_EXPL_INSUF_RES; | 1425 | rjt_data.explan = ELS_EXPL_INSUF_RES; |
1426 | fc_seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); | 1426 | fc_seq_els_rsp_send(in_fp, ELS_LS_RJT, &rjt_data); |
1427 | goto drop; | 1427 | goto drop; |
1428 | } | 1428 | } |