git: 76e57cf9ded8 - stable/13 - ixgbe: fix fw_recovery_mode callout

From: Kevin Bowling <kbowling_at_FreeBSD.org>
Date: Sat, 28 Sep 2024 09:26:13 UTC
The branch stable/13 has been updated by kbowling:

URL: https://cgit.FreeBSD.org/src/commit/?id=76e57cf9ded8df8263a7b0e5eac56840821a0634

commit 76e57cf9ded8df8263a7b0e5eac56840821a0634
Author:     Kevin Bowling <kbowling@FreeBSD.org>
AuthorDate: 2024-09-21 11:10:11 +0000
Commit:     Kevin Bowling <kbowling@FreeBSD.org>
CommitDate: 2024-09-28 09:25:43 +0000

    ixgbe: fix fw_recovery_mode callout
    
    Need to pass the softc in with the callout arg
    
    (cherry picked from commit a924b5ee6a1b4456b5bde979bb9e15d18726de4f)
---
 sys/dev/ixgbe/if_ix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/ixgbe/if_ix.c b/sys/dev/ixgbe/if_ix.c
index 2af927996aca..23e378ba70c6 100644
--- a/sys/dev/ixgbe/if_ix.c
+++ b/sys/dev/ixgbe/if_ix.c
@@ -1151,7 +1151,7 @@ ixgbe_if_attach_post(if_ctx_t ctx)
 		callout_init(&sc->fw_mode_timer, true);
 
 		/* Start the task */
-		callout_reset(&sc->fw_mode_timer, hz, ixgbe_fw_mode_timer, 0);
+		callout_reset(&sc->fw_mode_timer, hz, ixgbe_fw_mode_timer, sc);
 	}
 
 	return (0);