[PATCH] Thunder Lan Module - tlan.o

The Doctor What (docwhat@gerf.org)
Wed, 15 Sep 1999 06:39:02 -0500


--TD8GDToEDw0WLGOL
Content-Type: text/plain; charset=us-ascii

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

--TD8GDToEDw0WLGOL Content-Type: text/plain; charset=us-ascii Content-Description: tlan.c.probe.patch Content-Disposition: attachment; filename="tlan.c.probe.patch"

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

--TD8GDToEDw0WLGOL--

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/