Re: [PATCH v6 1/6] printk: Save console options for add_preferred_console_match()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> [240213 16:42]:
> 		strscpy(con->name, str, namelen);
> 		strscpy(con->opt, opt, optlen); // not sure if emptying opt is okay

The strings above now get terminated too sort with the + 1 removed,
I suggest we use what we already do for brl_opt:

		strscpy(con->name, str, CONSOLE_NAME_MAX);
		strscpy(con->opt, opt, CONSOLE_OPT_MAX);

Regards,

Tony




[Index of Archives]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux PPP]     [Linux FS]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Linmodem]     [Device Mapper]     [Linux Kernel for ARM]

  Powered by Linux