aboutsummaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <[email protected]>2005-11-23 13:37:44 -0800
committerLinus Torvalds <[email protected]>2005-11-23 16:08:39 -0800
commite9b15b54d3646108bbd3e054158b402025d3e704 (patch)
tree4e12028b9fd62fc13ad66d047f5d0052c2208e96 /scripts/basic
parent962b564cf1ec8041e8890a3c3847e3a630a08f42 (diff)
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions