Re: sysfs lockdep complaint

From: Johannes Berg
Date: Sat Feb 20 2010 - 09:00:19 EST


On Sat, 2010-02-20 at 21:54 +0800, AmÃrico Wang wrote:

> > /* Allocated above after the legacy_io struct */
> >- sysfs_bin_attr_init(&b->legacy_mem);
> > b->legacy_mem = b->legacy_io + 1;
> >+ sysfs_bin_attr_init(b->legacy_mem);

Also note the reordering to make it not crash ...

johannes

--
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/