diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-12-31 03:44:23 -0600 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-12-31 03:44:23 -0600 |
| commit | b1aad19bbf1a67db3edca33c3db332f0326179cb (patch) | |
| tree | 08b06a964b438d46cea857d985ec5ebcb38efcc1 /include/linux/kobject.h | |
| parent | 646c3054a4b3c19e531e4b00f73046fa07e7c30d (diff) | |
| parent | d5f1f33d1a5a400539ba24937b9b9a1de8474d94 (diff) | |
Merge bk://linux.bkbits.net/linux-2.5
into osdl.org:/home/mochel/src/kernel/devel/linux-2.5-virgin
Diffstat (limited to 'include/linux/kobject.h')
| -rw-r--r-- | include/linux/kobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kobject.h b/include/linux/kobject.h index 6b528c5a61cb..821d17e15a01 100644 --- a/include/linux/kobject.h +++ b/include/linux/kobject.h @@ -52,7 +52,7 @@ extern void subsystem_unregister(struct subsystem *); static inline struct subsystem * subsys_get(struct subsystem * s) { - return container_of(kobject_get(&s->kobj),struct subsystem,kobj); + return s ? container_of(kobject_get(&s->kobj),struct subsystem,kobj) : NULL; } static inline void subsys_put(struct subsystem * s) |
