summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx2/mxt_td60.c
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-12-19 14:43:01 +0000
committerLinus Torvalds <torvalds@linux-foundation.org>2010-01-06 01:11:29 -0800
commit10b465aaf9536ee5a16652fa0700740183d48ec9 (patch)
tree402597ee1ed00b2cfb57f14dba96199134a79b26 /arch/arm/mach-mx2/mxt_td60.c
parent74d2e4f8d79ae0c4b6ec027958d5b18058662eea (diff)
downloadop-kernel-dev-10b465aaf9536ee5a16652fa0700740183d48ec9.zip
op-kernel-dev-10b465aaf9536ee5a16652fa0700740183d48ec9.tar.gz
modules: Skip empty sections when exporting section notes
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() and add_notes_attrs(). Reported-by: Martin Michlmayr <tbm@cyrius.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Tested-by: Martin Michlmayr <tbm@cyrius.com> Cc: stable@kernel.org Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm/mach-mx2/mxt_td60.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud