- gregkh-driver-driver-core-class_device_add-needs-error-checks-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     gregkh-driver-driver-core-class_device_add-needs-error-checks fix

has been removed from the -mm tree.  Its filename is

     gregkh-driver-driver-core-class_device_add-needs-error-checks-fix.patch

This patch was probably dropped from -mm because
it has now been merged into a subsystem tree or
into Linus's tree, or because it was folded into
its parent patch in the -mm tree.


From: Jean Delvare <khali@xxxxxxxxxxxx>

Fix class_device_add success case after
gregkh-driver-driver-core-class_device_add-needs-error-checks.patch broke
it.  class_dev was no more put and class_name was no more freed before
leaving.  The former caused locks on driver removal (class_dev usage count
could never be 0.)

Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Cc: Stephen Hemminger <shemminger@xxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/base/class.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/base/class.c~gregkh-driver-driver-core-class_device_add-needs-error-checks-fix drivers/base/class.c
--- devel/drivers/base/class.c~gregkh-driver-driver-core-class_device_add-needs-error-checks-fix	2006-05-16 08:30:47.000000000 -0700
+++ devel-akpm/drivers/base/class.c	2006-05-16 08:30:47.000000000 -0700
@@ -620,7 +620,7 @@ int class_device_add(struct class_device
 	}
 	up(&parent_class->sem);
 
-	return 0;
+	goto out1;
 
  out8:
 	if (class_dev->dev)
_

Patches currently in -mm which might be from khali@xxxxxxxxxxxx are

origin.patch
scx200_acb-use-pci-i-o-resource-when-appropriate.patch
scx200_acb-use-pci-i-o-resource-when-appropriate-fix.patch
i2c-pca954x-i2c-mux-driver.patch
i2c-mpc-fix-up-error-handling.patch
opencores-i2c-bus-driver.patch
i2c-pca954x-fix-initial-access-to-first-mux-switch-port.patch
drivers-acorn-char-pcf8583-vs-rtc-subsystem.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux