Re: [PATCH] modules: Skip empty sections when exporting section notes

From: Rusty Russell
Date: Mon Dec 21 2009 - 05:24:58 EST


On Sun, 20 Dec 2009 01:13:01 am Ben Hutchings wrote:
> 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().

Looks good, queued.

Thanks!
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/