On Wed, Apr 15, 2015 at 03:31:15PM +0200, Greg Kroah-Hartman wrote: > > + > > +} > > empty free functions are a huge red flag. So much so the kobject > documentation in the kernel says I get to make fun of anyone who tries > to do this. So please don't do this :) > i was just working on the v2 and I saw : "@release: pointer to the function that will clean up the object when the last reference to the object is released. This pointer is required, and it is not acceptable to pass kfree in as this function. If the caller does pass kfree to this function, you will be publicly mocked mercilessly by the kref maintainer".
so i thought of checking and it looks like there are a few instances where kref has been passed as release. :) regards sudip > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/