diff options
Diffstat (limited to 'drivers/scsi/libfc/fc_disc.c')
-rw-r--r-- | drivers/scsi/libfc/fc_disc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 428421842f3a..1a699f484c85 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c | |||
@@ -219,6 +219,9 @@ static void fc_disc_recv_req(struct fc_seq *sp, struct fc_frame *fp, | |||
219 | */ | 219 | */ |
220 | static void fc_disc_restart(struct fc_disc *disc) | 220 | static void fc_disc_restart(struct fc_disc *disc) |
221 | { | 221 | { |
222 | if (!disc->disc_callback) | ||
223 | return; | ||
224 | |||
222 | FC_DISC_DBG(disc, "Restarting discovery\n"); | 225 | FC_DISC_DBG(disc, "Restarting discovery\n"); |
223 | 226 | ||
224 | disc->requested = 1; | 227 | disc->requested = 1; |