[Karmic] Fix upstream detected regression in 2.6.31.7
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Karmic |
Fix Released
|
Medium
|
Stefan Bader |
Bug Description
This probably only affects architectures that have empty sections but as this case in via 2.6.31.7 and was fixed for 2.6.32 (the only reason it did not make it to 31 is the end of support for that release upstream), we should pull in that patch as well.
From 8dfabfcf7b0c03f
From: Ben Hutchings <email address hidden>
Date: Sat, 19 Dec 2009 14:43:01 +0000
Subject: [PATCH] modules: Skip empty sections when exporting section notes
commit 10b465aaf9536ee
Commit 35dead4 "modules: don't export section names of empty sections
via sysfs" changed the set of sections that have attributes, but did
not change the iteration over these attributes in add_notes_attrs().
This can lead to add_notes_attrs() creating attributes with the wrong
names or with null name pointers.
Introduce a sect_empty() function and use it in both add_sect_attrs()
This was part of 2.6.32.4