Typo in drivers/base/core.c
PATCH 1/1 Typo in drivers/base/core.c
Hi all!
As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux' configuration system.
There's a typo in linux' source (CONFIG_MODULE -- missing the
final S) making the whole codeblock unselectable. The included patch should address this issue.
Please keep me informed of this patch getting confirmed /
merged so we can keep track of it.
Regards
Christoph Egger
[0] http://vamos1.informatik.uni-erlangen.de/
----
Quoted 1 line
From
d5fe80140757fedfe19c293cd7af4c1030b92353Mon Sep 17 00:00:00 2001
From: Christoph Egger <[email protected]>
Date: Mon, 17 May 2010 16:48:59 +0200
Subject: [PATCH] CONFIG_MODULES misstyped as _MODULE
In this code section the final S of CONFIG_MODULES was missed making the whole check useless
--- drivers/base/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/base/core.c +1 -1
@@ -1372,7 +1372,7 @@ struct device *__root_device_register(const char *name, struct module *owner)return ERR_PTR (err); } -#ifdef CONFIG_MODULE /* gotta find a "cleaner" way to do this */ +#ifdef CONFIG_MODULES /* gotta find a "cleaner" way to do this */ if (owner) {struct module_kobject *mk = &owner->mkobj;
Signature · 1 line
1.6.3.3
Quoted 9 lines · Christoph Egger
Hi all!
As part of the VAMOS[0] research project at the University of
Erlangen we are looking at multiple integrity errors in linux' configuration system.There's a typo in linux' source (
CONFIG_MODULE-- missing the
final S) making the whole codeblock unselectable. The included patch should address this issue.
Heh, this has been there since the code went into the tree, way back in 2.6.29 (1 1/2 years ago). Nice fine, I'll queue it up later this week.
Mark, how did you ever test this?
thanks,
greg k-h
Quoted 39 lines
Quoted 1 line
From
d5fe80140757fedfe19c293cd7af4c1030b92353Mon Sep 17 00:00:00 2001From: Christoph Egger <[email protected]>
Date: Mon, 17 May 2010 16:48:59 +0200
Subject: [PATCH]CONFIG_MODULESmisstyped as_MODULEIn this code section the final S of
CONFIG_MODULESwas missed making the whole check uselessSigned-off-by Christoph Egger <[email protected]>--- drivers/base/core.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)drivers/base/core.c +1
-1@@ -1372,7 +1372,7 @@ struct device *__root_device_register(const char *name, struct module *owner)return ERR_PTR (err); } -#ifdef CONFIG_MODULE /* gotta find a "cleaner" way to do this */ +#ifdef CONFIG_MODULES /* gotta find a "cleaner" way to do this */ if (owner) {struct module_kobject *mk = &owner->mkobj;Signature · 1 line
1.6.3.3