// restart the device
err = mlx4_restart_one(pdev);
-
- // recreate interfaces
- fix_bus_ifc(pdev);
+ if (err) {
+ event.event = IB_EVENT_RESET_FAILED;
+ }
+ else {
+ // recreate interfaces
+ fix_bus_ifc(pdev);
+ event.event = IB_EVENT_RESET_END;
+ }
// notify the clients
- event.event = IB_EVENT_RESET_END;
list_for_each_entry_safe(handler, thandler, &tlist,
list, struct ib_event_handler, struct ib_event_handler)
{