« Previous | Next » 

Revision 358664cc

ID358664cc6d1b5f7c36004be0179b36011b81c49d

Added by Stefan Hajnoczi almost 14 years ago

console: Avoid dereferencing NULL active_console

The console_select() function does not check that active_console is
non-NULL before dereferencing it. When invoked with qemu -nodefaults it
is possible to hit this case.

This patch checks that active_console is non-NULL before stashing away
the old console dimensions in console_select().

Signed-off-by: Stefan Hajnoczi <>
Acked-by: Gerd Hoffmann <>
Acked-by: Stefan Weil <>
Signed-off-by: Blue Swirl <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences