public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Driver-Core: devtmpfs - cleanup node on device creation error
@ 2009-10-28 18:51 Kay Sievers
  2009-10-29 19:29 ` patch driver-core-devtmpfs-cleanup-node-on-device-creation-error.patch added to gregkh-2.6 tree gregkh
  0 siblings, 1 reply; 2+ messages in thread
From: Kay Sievers @ 2009-10-28 18:51 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-kernel

From: Kay Sievers <kay.sievers@vrfy.org>
Subject: Driver-Core: devtmpfs - cleanup node on device creation error

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
---
 drivers/base/core.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -987,6 +987,8 @@ done:
 	device_remove_class_symlinks(dev);
  SymlinkError:
 	if (MAJOR(dev->devt))
+		devtmpfs_delete_node(dev);
+	if (MAJOR(dev->devt))
 		device_remove_sys_dev_entry(dev);
  devtattrError:
 	if (MAJOR(dev->devt))


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

end of thread, other threads:[~2009-10-29 19:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-28 18:51 Driver-Core: devtmpfs - cleanup node on device creation error Kay Sievers
2009-10-29 19:29 ` patch driver-core-devtmpfs-cleanup-node-on-device-creation-error.patch added to gregkh-2.6 tree gregkh

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