PATCH: fix up yam for 2.5 locking

Alan Cox (alan@lxorguk.ukuu.org.uk)
Tue, 8 Apr 2003 01:24:43 +0100


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.67/drivers/net/hamradio/yam.c linux-2.5.67-ac1/drivers/net/hamradio/yam.c
--- linux-2.5.67/drivers/net/hamradio/yam.c 2003-02-15 03:39:31.000000000 +0000
+++ linux-2.5.67-ac1/drivers/net/hamradio/yam.c 2003-04-04 18:12:23.000000000 +0100
@@ -722,7 +722,6 @@
int counter = 100;
int i;

- sti();

for (i = 0; i < NR_PORTS; i++) {
yp = &yam_ports[i];
@@ -768,7 +767,6 @@
off_t pos = 0;
off_t begin = 0;

- cli();

for (i = 0; i < NR_PORTS; i++) {
if (yam_ports[i].iobase == 0 || yam_ports[i].irq == 0)
@@ -803,8 +801,6 @@
break;
}

- sti();
-
*start = buffer + (offset - begin);
len -= (offset - begin);

-
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/