aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd/commit.c
diff options
context:
space:
mode:
authorBen Hutchings <[email protected]>2009-12-19 14:43:01 +0000
committerLinus Torvalds <[email protected]>2010-01-06 09:11:29 +0000
commit10b465aaf9536ee5a16652fa0700740183d48ec9 (patch)
tree402597ee1ed00b2cfb57f14dba96199134a79b26 /fs/jbd/commit.c
parentLinux 2.6.33-rc3 (diff)
downloadkernel-10b465aaf9536ee5a16652fa0700740183d48ec9.tar.gz
kernel-10b465aaf9536ee5a16652fa0700740183d48ec9.zip
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 <[email protected]> Signed-off-by: Ben Hutchings <[email protected]> Tested-by: Martin Michlmayr <[email protected]> Cc: [email protected] Signed-off-by: Rusty Russell <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd/commit.c')
0 files changed, 0 insertions, 0 deletions