diff options
| author | 2025-10-26 09:40:16 -0700 | |
|---|---|---|
| committer | 2025-10-26 09:40:16 -0700 | |
| commit | 7ea5092f5208d1758926ca54941f8a8ad49736b5 (patch) | |
| tree | cc2859ad26f8a56a788be068305e5cdfaf6d323e | |
| parent | Merge tag 'driver-core-6.18-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core (diff) | |
| parent | timekeeping: Fix aux clocks sysfs initialization loop bound (diff) | |
| download | linux-rng-7ea5092f5208d1758926ca54941f8a8ad49736b5.tar.xz linux-rng-7ea5092f5208d1758926ca54941f8a8ad49736b5.zip | |
Merge tag 'timers_urgent_for_v6.18_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull timer fix from Borislav Petkov:
- Do not create more than eight (max supported) AUX clocks sysfs
hierarchies
* tag 'timers_urgent_for_v6.18_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
timekeeping: Fix aux clocks sysfs initialization loop bound
| -rw-r--r-- | kernel/time/timekeeping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index b6974fce800c..3a4d3b2e3f74 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -3070,7 +3070,7 @@ static int __init tk_aux_sysfs_init(void) return -ENOMEM; } - for (int i = 0; i <= MAX_AUX_CLOCKS; i++) { + for (int i = 0; i < MAX_AUX_CLOCKS; i++) { char id[2] = { [0] = '0' + i, }; struct kobject *clk = kobject_create_and_add(id, auxo); |
