|
@@ -2464,6 +2464,7 @@ void register_console(struct console *newcon)
|
|
for (i = 0, c = console_cmdline;
|
|
for (i = 0, c = console_cmdline;
|
|
i < MAX_CMDLINECONSOLES && c->name[0];
|
|
i < MAX_CMDLINECONSOLES && c->name[0];
|
|
i++, c++) {
|
|
i++, c++) {
|
|
|
|
+ BUILD_BUG_ON(sizeof(c->name) != sizeof(newcon->name));
|
|
if (strcmp(c->name, newcon->name) != 0)
|
|
if (strcmp(c->name, newcon->name) != 0)
|
|
continue;
|
|
continue;
|
|
if (newcon->index >= 0 &&
|
|
if (newcon->index >= 0 &&
|