patch-1.3.95 linux/drivers/net/depca.c
Next file: linux/drivers/net/ewrk3.c
Previous file: linux/drivers/isdn/teles/isdnl3.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Tue Apr 23 09:22:01 1996
- Orig file:
v1.3.94/linux/drivers/net/depca.c
- Orig date:
Fri Apr 12 15:51:55 1996
diff -u --recursive --new-file v1.3.94/linux/drivers/net/depca.c linux/drivers/net/depca.c
@@ -200,11 +200,12 @@
Both above from a suggestion by
<pchen@woodruffs121.residence.gatech.edu>.
Add new multicasting code.
+ 0.421 22-Apr-96 Fix alloc_device() bug <jari@markkus2.fimr.fi>
=========================================================================
*/
-static const char *version = "depca.c:v0.42 95/12/27 davies@wanton.lkg.dec.com\n";
+static const char *version = "depca.c:v0.421 96/4/22 davies@wanton.lkg.dec.com\n";
#include <linux/module.h>
@@ -1336,7 +1337,7 @@
** and initialize it (name, I/O address, next device (NULL) and
** initialisation probe routine).
*/
- dev->name = (char *)(dev + sizeof(struct device));
+ dev->name = (char *)(dev + 1);
if (num_eth > 9999) {
sprintf(dev->name,"eth????"); /* New device name */
} else {
@@ -1375,7 +1376,7 @@
** and initialize it (name, I/O address, next device (NULL) and
** initialisation probe routine).
*/
- tmp->name = (char *)(tmp + sizeof(struct device));
+ tmp->name = (char *)(tmp + 1);
if (num_eth > 9999) {
sprintf(tmp->name,"eth????"); /* New device name */
} else {
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this