We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e6f01f commit 4108d14Copy full SHA for 4108d14
arch/x86/kernel/hpet.c
@@ -421,7 +421,7 @@ static void __init hpet_legacy_clockevent_register(struct hpet_channel *hc)
421
* the IO_APIC has been initialized.
422
*/
423
hc->cpu = boot_cpu_data.cpu_index;
424
- strncpy(hc->name, "hpet", sizeof(hc->name));
+ strscpy(hc->name, "hpet", sizeof(hc->name));
425
hpet_init_clockevent(hc, 50);
426
427
hc->evt.tick_resume = hpet_clkevt_legacy_resume;
0 commit comments