diff options
author | Jim Liu <jim.t90615@gmail.com> | 2025-08-07 13:28:32 +0800 |
---|---|---|
committer | Jerome Forissier <jerome.forissier@linaro.org> | 2025-08-18 14:08:57 +0200 |
commit | 59ec495f6c645c80d934034ffe48adb2ea75839a (patch) | |
tree | 66d7365bfbb2805ab4b51d07b805347e96641142 /drivers/fpga/stratixv.c | |
parent | 2e9155cb9f366a6b9191af0850efad1948b4c785 (diff) |
net: designware: Fix get_timer value overflow
get_timer returns a ulong value representing system time in ms.
On a 64-bit system, this ulong value is 64 bits long. However,
the driver stores it in a 32-bit unsigned integer, which overflows
after 49 days up time, causing the driver to get an incorrect time.
Replace the unsigned int variable with a ulong type to properly store
the value returned by get_timer.
Signed-off-by: Stanley Chu <yschu@nuvoton.com>
Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
Diffstat (limited to 'drivers/fpga/stratixv.c')
0 files changed, 0 insertions, 0 deletions