On Mon, Jan 31, 2022 at 10:05:36PM +0100, Daniel Vetter wrote: > Half of it is protected by console_lock, but the other half is a lot > more awkward: Registration/deregistration of fbdev are serialized, but > we don't really clear out anything in con2fb_map and so there's > potential for use-after free mixups. > > First step is to encapsulate the lookup. > > Signed-off-by: Daniel Vetter <[email protected]> > Cc: Helge Deller <[email protected]> > Cc: Daniel Vetter <[email protected]> > Cc: Greg Kroah-Hartman <[email protected]> > Cc: Tetsuo Handa <[email protected]> > Cc: Du Cheng <[email protected]> > Cc: Claudio Suarez <[email protected]> > Cc: Thomas Zimmermann <[email protected]> Acked-by: Sam Ravnborg <[email protected]>
