[2082] in linux-net channel archive

home help back first fref pref prev next nref lref last post

1.3.73 EtherExpress driver typos

daemon@ATHENA.MIT.EDU (Philip Blundell)
Thu Mar 14 10:46:59 1996

Date: 	Thu, 14 Mar 1996 14:10:30 +0000 (GMT)
From: Philip Blundell <pjb27@cam.ac.uk>
To: linux-net@vger.rutgers.edu

I made a couple of goofs in the module code for eexpress.c in 1.3.73.

This patch (from Harald Koenig, koenig@tat.physik.uni-tuebingen.de) 
should let you compile without errors.  Sorry about that.

*** /soft/linux/drivers/net/eexpress.c	Wed Mar 13 22:45:43 1996
--- /linux/drivers/net/eexpress.c	Thu Mar 14 01:38:15 1996
***************
*** 1224,1231 ****
  	0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, express_probe 
  };
  
! int irq[MAX_EEXP_CARDS] = {0, };
! int io[MAX_EEXP_CARDS] = {0, };
  
  /* Ideally the user would give us io=, irq= for every card.  If any parameters
   * are specified, we verify and then use them.  If no parameters are given, we
--- 1224,1231 ----
  	0, 0, 0, 0, 0, 0, 0, 0, 0, NULL, express_probe 
  };
  
! int irq[EEXP_MAX_CARDS] = {0, };
! int io[EEXP_MAX_CARDS] = {0, };
  
  /* Ideally the user would give us io=, irq= for every card.  If any parameters
   * are specified, we verify and then use them.  If no parameters are given, we
***************
*** 1261,1267 ****
  	for (this_dev = 0; this_dev < EEXP_MAX_CARDS; this_dev++) {
  		struct device *dev = &dev_eexp[this_dev];
  		if (dev->priv != NULL) {
! 			kfree_s(dev->priv. sizeof(struct net_local));
  			dev->priv = NULL;
  			release_region(dev->base_addr, EEXP_IO_EXTENT);
  			unregister_netdev(dev);
--- 1261,1267 ----
  	for (this_dev = 0; this_dev < EEXP_MAX_CARDS; this_dev++) {
  		struct device *dev = &dev_eexp[this_dev];
  		if (dev->priv != NULL) {
! 			kfree_s(dev->priv, sizeof(struct net_local));
  			dev->priv = NULL;
  			release_region(dev->base_addr, EEXP_IO_EXTENT);
  			unregister_netdev(dev);

P.


home help back first fref pref prev next nref lref last post