Skip to contentSkip to conversation

mxser broken since 2.4.5

PATCH New christophe barbé 1 participant 1 message Aug 6, 2001

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mxser broken since 2.4.5

The mxser driver (Moxar mutiple serial ports card) has been updated (and broken) between the 2.4.4 and 2.4.5 kernels.
A doucle call of down() on a semaphore in mxser_write leads to a D state.

Please apply the attached patch.

Christophe

Signature · 6 lines
Christophe Barbé
Software Engineer - [email protected]
Lineo France - Lineo High Availability Group
42-46, rue Médéric - 92110 Clichy - France
phone (33).1.41.40.02.12 - fax (33).1.41.40.02.01
http://www.lineo.com
drivers/char/mxser.c +0 -2
diff -u -b -B -r -N linux-2.4.7-vanilla/drivers/char/mxser.c linux-2.4.7/drivers/char/mxser.c
@@ -884,8 +884,6 @@
 	if (!tty || !info->xmit_buf || !mxvar_tmp_buf)
 		return (0);
 
-	if (from_user)
-		down(&mxvar_tmp_buf_sem);
 	save_flags(flags);
 	if (from_user) {
 		down(&mxvar_tmp_buf_sem);