Re: [PATCH] PnP Fixes for 2.5.73

Adam Belay (ambx1@neo.rr.com)
Tue, 24 Jun 2003 20:59:57 +0000


# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1387 -> 1.1388
# drivers/pnp/manager.c 1.8 -> 1.9
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/06/24 ambx1@neo.rr.com 1.1388
# [PNP] Locking Fixes
#
# The semaphore in pnp_init_resource_table is not needed and, in some
# cases, can cause resource management lockups. This patch removes the
# improperly placed semaphore.
# --------------------------------------------
#
diff -Nru a/drivers/pnp/manager.c b/drivers/pnp/manager.c
--- a/drivers/pnp/manager.c Tue Jun 24 20:34:17 2003
+++ b/drivers/pnp/manager.c Tue Jun 24 20:34:17 2003
@@ -193,7 +193,6 @@
void pnp_init_resource_table(struct pnp_resource_table *table)
{
int idx;
- down(&pnp_res_mutex);
for (idx = 0; idx < PNP_MAX_IRQ; idx++) {
table->irq_resource[idx].name = NULL;
table->irq_resource[idx].start = -1;
@@ -218,7 +217,6 @@
table->mem_resource[idx].end = 0;
table->mem_resource[idx].flags = IORESOURCE_AUTO;
}
- up(&pnp_res_mutex);
}

/**
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/