lkml.org 
[lkml]   [1999]   [Sep]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Thunder Lan Module - tlan.o
Here is a one line patch to tlan.o in drivers/net.
It fixes the fact that if you insmod it on any machine, it will
successfully insert itself. If you use this to "probe" for hardware (like
in the TurboLinux Installer), it will give you false "yes"es.

The fix is trivial, and I believe it to be right.

It should probably be included in the next stable, as it is a bug fix.

Ciao!

PS: I maintain the kernel for TurboLinux, my employers.

--
Digital circuits are made from analog parts.
-- Don Vonada

The Doctor What: "What, Doctor What" http://docwhat.gerf.org/
docwhat@gerf.org (finger docwhat@gerf.org for PGP key)
KF6VNC
--- linux/drivers/net/tlan.c.orig Wed Sep 15 01:39:36 1999
+++ linux/drivers/net/tlan.c Wed Sep 15 02:38:41 1999
@@ -352,7 +352,7 @@

/* printk( "TLAN: Found %d device(s).\n", TLanDevicesInstalled ); */

- return ( ( TLanDevicesInstalled >= 0 ) ? 0 : -ENODEV );
+ return ( ( TLanDevicesInstalled > 0 ) ? 0 : -ENODEV );

} /* init_module */
\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.020 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site