[PATCH] mxser broken since 2.4.5

christophe barbé (christophe.barbe@lineo.fr)
Mon, 6 Aug 2001 17:03:00 +0200


--AWniW0JNca5xppdA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

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

-- 
Christophe Barbé
Software Engineer - christophe.barbe@lineo.fr
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

--AWniW0JNca5xppdA Content-Type: text/x-patch; charset=us-ascii Content-Disposition: attachment; filename="mxser.patch"

diff -u -b -B -r -N linux-2.4.7-vanilla/drivers/char/mxser.c linux-2.4.7/drivers/char/mxser.c --- linux-2.4.7-vanilla/drivers/char/mxser.c Wed May 16 19:31:27 2001 +++ linux-2.4.7/drivers/char/mxser.c Mon Aug 6 16:55:13 2001 @@ -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);

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