Skip to content
This repository has been archived by the owner on Sep 28, 2024. It is now read-only.

Commit

Permalink
RH7: check rport in fc_eh_timed_out
Browse files Browse the repository at this point in the history
  • Loading branch information
longlimsft authored and vyadavmsft committed Jan 27, 2018
1 parent 91d1699 commit 730274e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hv-rhel7.x/hv/include/linux/hv_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ static inline enum blk_eh_timer_return fc_eh_timed_out(struct scsi_cmnd *scmd)
{
struct fc_rport *rport = starget_to_rport(scsi_target(scmd->device));

if (rport->port_state == FC_PORTSTATE_BLOCKED)
if (rport && rport->port_state == FC_PORTSTATE_BLOCKED)
return BLK_EH_RESET_TIMER;

return BLK_EH_NOT_HANDLED;
Expand Down

0 comments on commit 730274e

Please sign in to comment.