> Date: Wed, 9 Oct 2024 14:36:44 +0000
> From: Miod Vallat <m...@online.fr>
> 
> > Would it make sense to copy the check from wsdisplayopen()
> > instead of crashing in this case?
> 
> No. All read/write/ioctl/etc routines rely upon open doing the
> appropriate checks once, and failing if needed. But /dev/console blindly
> trusts the device being setup by consinit(), in which case /dev/ttyC0.
> 
> > Or should we prevent that situation on higher level?
> 
> Since efifb claimed the console, it should have attached.

I don't think efifb claimed the console in the situation where the
monitor isn't plugged in.

Reply via email to