Hi,

this function will run in the context of the scsi error handler thread.
It must use GFP_NOIO instead of GFP_KERNEL to avoid a possible
deadlock.

Signed-off-by: Oliver Neukum <[EMAIL PROTECTED]>

        Regards
                Oliver

----

--- linux-2.6.24-scsi-power/drivers/usb/core/hub.c.alt  2008-01-10 
10:23:41.000000000 +0100
+++ linux-2.6.24-scsi-power/drivers/usb/core/hub.c      2008-01-10 
10:24:34.000000000 +0100
@@ -2946,7 +2946,7 @@ static int config_descriptors_changed(st
                if (len < le16_to_cpu(udev->config[index].desc.wTotalLength))
                        len = 
le16_to_cpu(udev->config[index].desc.wTotalLength);
        }
-       buf = kmalloc (len, GFP_KERNEL);
+       buf = kmalloc (len, GFP_NOIO);
        if (buf == NULL) {
                dev_err(&udev->dev, "no mem to re-read configs after reset\n");
                /* assume the worst */
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to