diff options
| author | Jim Liu <[email protected]> | 2025-08-07 13:28:32 +0800 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2025-08-18 14:08:57 +0200 |
| commit | 59ec495f6c645c80d934034ffe48adb2ea75839a (patch) | |
| tree | 66d7365bfbb2805ab4b51d07b805347e96641142 /include | |
| 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 <[email protected]>
Signed-off-by: Jim Liu <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
