Messages in this thread | | | Date | Fri, 17 Feb 2006 16:36:25 -0800 | From | Greg KH <> | Subject | Re: sysfs-related oops during module unload (2.6.16-rc2) |
| |
On Thu, Feb 16, 2006 at 10:53:45PM -0500, Dmitry Torokhov wrote: > On Thursday 16 February 2006 16:50, Greg KH wrote: > > +???????mod->modinfo_attrs = kzalloc((sizeof(struct module_attribute) * > > +???????????????????????????????????????(ARRAY_SIZE(modinfo_attrs) + 1)), > > +???????????????????????????????????????GFP_KERNEL); > > > > kcalloc() perhaps? Here you explecitely create n elements of a given size...
Heh, sure, the one time I actually are creating n elements :)
I'll go change that.
thanks for pointing it out.
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |