diff options
-rw-r--r-- | drivers/scsi/libfc/fc_rport.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c index cbf6c9f233ca..6ecf36d4708c 100644 --- a/drivers/scsi/libfc/fc_rport.c +++ b/drivers/scsi/libfc/fc_rport.c | |||
@@ -436,7 +436,8 @@ static void fc_rport_timeout(struct work_struct *work) | |||
436 | static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) | 436 | static void fc_rport_error(struct fc_rport_priv *rdata, struct fc_frame *fp) |
437 | { | 437 | { |
438 | FC_RPORT_DBG(rdata, "Error %ld in state %s, retries %d\n", | 438 | FC_RPORT_DBG(rdata, "Error %ld in state %s, retries %d\n", |
439 | PTR_ERR(fp), fc_rport_state(rdata), rdata->retries); | 439 | IS_ERR(fp) ? -PTR_ERR(fp) : 0, |
440 | fc_rport_state(rdata), rdata->retries); | ||
440 | 441 | ||
441 | switch (rdata->rp_state) { | 442 | switch (rdata->rp_state) { |
442 | case RPORT_ST_PLOGI: | 443 | case RPORT_ST_PLOGI: |