public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] isicom: istallion prepare for lock_kernel pushdown
@ 2008-02-20 20:16 Alan Cox
  0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2008-02-20 20:16 UTC (permalink / raw)
  To: akpm, linux-kernel

This is an ancient driver so just wrap it in lock_kernel internally and
be done.

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.25-rc2-mm1/drivers/char/istallion.c linux-2.6.25-rc2-mm1/drivers/char/istallion.c
--- linux.vanilla-2.6.25-rc2-mm1/drivers/char/istallion.c	2008-02-19 11:03:00.000000000 +0000
+++ linux-2.6.25-rc2-mm1/drivers/char/istallion.c	2008-02-20 11:45:50.000000000 +0000
@@ -4433,6 +4433,8 @@
 	done = 0;
 	rc = 0;
 
+	lock_kernel();
+	
 	switch (cmd) {
 	case COM_GETPORTSTATS:
 		rc = stli_getportstats(NULL, argp);
@@ -4455,7 +4457,8 @@
 		done++;
 		break;
 	}
-
+	unlock_kernel();
+	
 	if (done)
 		return rc;
 
@@ -4472,6 +4475,8 @@
 	if (brdp->state == 0)
 		return -ENODEV;
 
+	lock_kernel();
+	
 	switch (cmd) {
 	case STL_BINTR:
 		EBRDINTR(brdp);
@@ -4494,6 +4499,7 @@
 		rc = -ENOIOCTLCMD;
 		break;
 	}
+	unlock_kernel();
 	return rc;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-20 20:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 20:16 [PATCH] isicom: istallion prepare for lock_kernel pushdown Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox