[SRU][PATCH 0/1][jammy:intel-iotg/intel-iot-realtime] Fix divide error
Thibault Ferrante
thibault.ferrante at canonical.com
Fri Apr 19 14:09:48 UTC 2024
BugLink: https://bugs.launchpad.net/bugs/2062129
[Impact]
Division by zero can be triggered when resetting/disabling
the adapter
[Fix]
Explicitely check for 0 divider before going through this path
[Test Plan]
Test on according hardware:
1. tc qdisc add dev ${ETHERNET_INTERFACE} handle 8001: parent root mqprio num_tc 4 map 0 1 2 3 3 3 3 3 3 3 3 3 3 3 3 3 queues 1 at 0 1 at 1 1 at 2 1 at 3 hw 0
2. tc qdisc replace dev ${ETHERNET_INTERFACE} parent 8001:4 etf offload clockid CLOCK_TAI delta 500000
3. tc qdisc delete dev ${ETHERNET_INTERFACE} root
4. Repeate Step 1, 2 again.
[Where problems could occur]
Regression on IGC ethernet driver
Thibault Ferrante (1):
UBUNTU: SAUCE: igc: Fix divide error
drivers/net/ethernet/intel/igc/igc_tsn.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.43.0
More information about the kernel-team
mailing list