Re: [PATCH v3 4/5] console: Avoid positive return code from unregister_console()

From: Sergey Senozhatsky
Date: Tue Jan 28 2020 - 04:26:20 EST


On (20/01/28 11:22), Andy Shevchenko wrote:
[..]
> > Console is not on the console_drivers list. Why does !ENABLED case
> > require extra handling?
>
> It's mirroring (to some extend) the register_console() abort conditions.
>
> > What about the case when console is ENABLED
> > but still not registered?
>
> What about when console is ENABLED and we call register_console()?

I think that ENABLED bit makes sense only when console is on the list.
Otherwise, I suspect, nothing will be able to access the console.

-ss