patch-2.4.0-test5 linux/drivers/net/hp100.c

Next file: linux/drivers/net/ibmlana.c
Previous file: linux/drivers/net/hamradio/soundmodem/sm_wss.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test4/linux/drivers/net/hp100.c linux/drivers/net/hp100.c
@@ -3040,7 +3040,7 @@
 	{
 	  /* DeAllocate everything */
 	  /* Note: if dev->priv is mallocated, there is no way to fail */
-	  kfree_s(hp100_devlist[i], sizeof(struct net_device));
+	  kfree(hp100_devlist[i]);
 	  hp100_devlist[i] = (struct net_device *) NULL;
 	}
        else
@@ -3061,12 +3061,12 @@
 	unregister_netdev( hp100_devlist[i] );
 	release_region( hp100_devlist[i]->base_addr, HP100_REGION_SIZE );
 	if( ((struct hp100_private *)hp100_devlist[i]->priv)->mode==1 ) /* busmaster */
-	  kfree_s( ((struct hp100_private *)hp100_devlist[i]->priv)->page_vaddr, MAX_RINGSIZE+0x0f); 
+	  kfree( ((struct hp100_private *)hp100_devlist[i]->priv)->page_vaddr ); 
 	if ( ((struct hp100_private *)hp100_devlist[i]->priv) -> mem_ptr_virt )
 	  iounmap( ((struct hp100_private *)hp100_devlist[i]->priv) -> mem_ptr_virt );
-	kfree_s( hp100_devlist[i]->priv, sizeof( struct hp100_private ) );
+	kfree( hp100_devlist[i]->priv );
 	hp100_devlist[i]->priv = NULL;
-	kfree_s(hp100_devlist[i], sizeof(struct net_device));
+	kfree(hp100_devlist[i]);
 	hp100_devlist[i] = (struct net_device *) NULL;
       }
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)