2002-08-11 17:31:56

by Frank Davis

[permalink] [raw]
Subject: [PATCH] 2.5.31 : net/802/psnap.c

Hello all,
This fixes the net/network.o save_flags/restore_flags error. Please
review.

Regards,
Frank

--- net/802/psnap.c.old Sun Aug 11 13:06:19 2002
+++ net/802/psnap.c Sun Aug 11 13:09:46 2002
@@ -127,8 +127,7 @@
struct datalink_proto *tmp;
unsigned long flags;

- save_flags(flags);
- cli();
+ local_irq_save(flags);

while ((tmp = *clients) != NULL) {
if (!memcmp(tmp->type, desc, 5)) {
@@ -139,7 +138,7 @@
clients = &tmp->next;
}

- restore_flags(flags);
+ local_irq_restore(flags);
}

MODULE_LICENSE("GPL");