+ fix-bus_rescan_devices-in-mm.patch added to -mm tree

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

 



The patch titled

     Fix bus_rescan_devices() in -mm

has been added to the -mm tree.  Its filename is

     fix-bus_rescan_devices-in-mm.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Fix bus_rescan_devices() in -mm
From: Cornelia Huck <cornelia.huck@xxxxxxxxxx>

With the __must_check changes in the driver core,
bus_rescan_devices_helper() now returns the return code of its call to
device_attach().  device_attach() will return < 0 on error, 0 on no match
and 1 on match.  This means that bus_rescan_devices() will stop after the
first successful match for a device, which is probably not what we want. 
Stopping on error makes sense, however.

Signed-off-by: Cornelia Huck <cornelia.huck@xxxxxxxxxx>
Cc: Greg KH <greg@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

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

diff -puN drivers/base/bus.c~fix-bus_rescan_devices-in-mm drivers/base/bus.c
--- a/drivers/base/bus.c~fix-bus_rescan_devices-in-mm
+++ a/drivers/base/bus.c
@@ -576,7 +576,7 @@ static int __must_check bus_rescan_devic
 		if (ret > 0)
 			ret = 0;
 	}
-	return ret;
+	return ret < 0 ? ret : 0;
 }
 
 /**
_

Patches currently in -mm which might be from cornelia.huck@xxxxxxxxxx are

origin.patch
fix-bus_rescan_devices-in-mm.patch
more-driver-core-fixes-for-mm.patch
git-s390.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