[kernel] r6314 - people/waldi/linux-kbuild-2.6/src/mod
Bastian Blank
waldi at costa.debian.org
Tue Mar 28 14:36:50 UTC 2006
Author: waldi
Date: Tue Mar 28 14:36:49 2006
New Revision: 6314
Modified:
people/waldi/linux-kbuild-2.6/src/mod/module.cpp
Log:
src/mod/module.cpp: Don't try to use null pointer.
Modified: people/waldi/linux-kbuild-2.6/src/mod/module.cpp
==============================================================================
--- people/waldi/linux-kbuild-2.6/src/mod/module.cpp (original)
+++ people/waldi/linux-kbuild-2.6/src/mod/module.cpp Tue Mar 28 14:36:49 2006
@@ -274,7 +274,11 @@
void module_real::write_moddevtable (std::ostream &out)
{
for (std::list<module_devicetable::table_base *>::iterator it = devicetables.begin (); it != devicetables.end (); ++it)
- (*it)->write (out);
+ {
+ module_devicetable::table_base *ent = *it;
+ if (ent)
+ ent->write (out);
+ }
}
void module_real::write_versions (std::ostream &out, const modulelist &list)
More information about the Kernel-svn-changes
mailing list