File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
drivers/net/ethernet/amd/pds_core Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -524,7 +524,8 @@ static void pdsc_fw_down(struct pdsc *pdsc)
524
524
}
525
525
526
526
/* Notify clients of fw_down */
527
- devlink_health_report (pdsc -> fw_reporter , "FW down reported" , pdsc );
527
+ if (pdsc -> fw_reporter )
528
+ devlink_health_report (pdsc -> fw_reporter , "FW down reported" , pdsc );
528
529
pdsc_notify (PDS_EVENT_RESET , & reset_event );
529
530
530
531
pdsc_stop (pdsc );
@@ -554,8 +555,9 @@ static void pdsc_fw_up(struct pdsc *pdsc)
554
555
555
556
/* Notify clients of fw_up */
556
557
pdsc -> fw_recoveries ++ ;
557
- devlink_health_reporter_state_update (pdsc -> fw_reporter ,
558
- DEVLINK_HEALTH_REPORTER_STATE_HEALTHY );
558
+ if (pdsc -> fw_reporter )
559
+ devlink_health_reporter_state_update (pdsc -> fw_reporter ,
560
+ DEVLINK_HEALTH_REPORTER_STATE_HEALTHY );
559
561
pdsc_notify (PDS_EVENT_RESET , & reset_event );
560
562
561
563
return ;
You can’t perform that action at this time.
0 commit comments