From: Benjamin Herrenschmidt Date: Wed, 23 Nov 2005 21:37:44 +0000 (-0800) Subject: [PATCH] Fix crash in unregister_console() X-Git-Tag: v2.6.15-rc3~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b15b54d3646108bbd3e054158b402025d3e704;p=pandora-kernel.git [PATCH] Fix crash in unregister_console() If unregister_console() is inadvertently called while no consoles are registered, it will crash trying to dereference NULL pointer. It is necessary to fix that because register_console() provides no indication that it actually registered the console passed in. In fact, it may well decide not to register it based on various things... (akpm: It'd be better to make register_console() return something and fix the callers. All 106 of them...) Signed-off-by: Benjamin Herrenschmidt Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed