mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH REPOST 2.6.10-rc2 0/4] module sysfs: module sysfs related clean ups
@ 2004-11-23  6:12 Tejun Heo
  2004-11-23  6:13 ` [PATCH REPOST 2.6.10-rc2 1/4] module sysfs: make module.mkobj inline Tejun Heo
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Tejun Heo @ 2004-11-23  6:12 UTC (permalink / raw)
  To: greg, rusty, linux-kernel

 Hello, Greg.  Hello, Rusty.

 I forgot kfree(mk) in params.c:kernel_param_sysfs_setup() on failure
path.  You can just add kfree(mk) like the following.

	/* no need to keep the kobject if no parameter is exported */
-	if (!param_sysfs_setup(mk, kparam, num_params, name_skip))
+	if (!param_sysfs_setup(mk, kparam, num_params, name_skip)) {
		kobject_unregister(&mk->kobj);
+		kfree(mk);
+	}

 I also regenerated all patches.  Sorry for the inconvenience.

-- 
tejun


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-12-15 19:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-23  6:12 [PATCH REPOST 2.6.10-rc2 0/4] module sysfs: module sysfs related clean ups Tejun Heo
2004-11-23  6:13 ` [PATCH REPOST 2.6.10-rc2 1/4] module sysfs: make module.mkobj inline Tejun Heo
2004-11-23  6:14 ` [PATCH REPOST 2.6.10-rc2 0/4] module sysfs: expand module_attribute Tejun Heo
2004-11-23  6:18   ` This is 2/4, sorry Tejun Heo
2004-11-23  6:15 ` [PATCH REPOST 2.6.10-rc2 3/4] module sysfs: sections attr reimplemented using attr group Tejun Heo
2004-11-23  6:16 ` [PATCH REPOST 2.6.10-rc2 4/4] module sysfs: module parameters " Tejun Heo
2004-12-15 19:21 ` [PATCH REPOST 2.6.10-rc2 0/4] module sysfs: module sysfs related clean ups Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome