mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 155] Mac Sonic Ethernet
@ 2004-06-20 17:20 Geert Uytterhoeven
  2004-06-20 18:32 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2004-06-20 17:20 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Linux Kernel Development, linux-net, Geert Uytterhoeven

Mac Sonic Ethernet updates (from Matthias Urlichs in 2.6):
  - Fix memory leak in error path
  - Kill obsolete namespace stuff
  - Kill duplicate `MODULE_LICENSE("GPL");' (already defined in included
    sonic.c) which causes a compile failure

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

--- linux-2.4.27-rc1/drivers/net/macsonic.c	2004-04-27 17:20:37.000000000 +0200
+++ linux-m68k-2.4.27-rc1/drivers/net/macsonic.c	2004-05-04 22:38:58.000000000 +0200
@@ -199,6 +199,7 @@ int __init macsonic_init(struct net_devi
 	if ((lp->rba = (char *)
 	     kmalloc(SONIC_NUM_RRS * SONIC_RBSIZE, GFP_KERNEL | GFP_DMA)) == NULL) {
 		printk(KERN_ERR "%s: couldn't allocate receive buffers\n", dev->name);
+		kfree(lp);
 		return -ENOMEM;
 	}
 
@@ -635,19 +636,14 @@ int __init mac_nubus_sonic_probe(struct 
 }
 
 #ifdef MODULE
-static char namespace[16] = "";
 static struct net_device dev_macsonic;
 
 MODULE_PARM(sonic_debug, "i");
 MODULE_PARM_DESC(sonic_debug, "macsonic debug level (1-4)");
-MODULE_LICENSE("GPL");
-
-EXPORT_NO_SYMBOLS;
 
 int
 init_module(void)
 {
-        dev_macsonic.name = namespace;
         dev_macsonic.init = macsonic_probe;
 
         if (register_netdev(&dev_macsonic) != 0) {

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 155] Mac Sonic Ethernet
  2004-06-20 17:20 [PATCH 155] Mac Sonic Ethernet Geert Uytterhoeven
@ 2004-06-20 18:32 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2004-06-20 18:32 UTC (permalink / raw)
  To: Geert Uytterhoeven; +Cc: Marcelo Tosatti, Linux Kernel Development, linux-net

On Sun, Jun 20, 2004 at 07:20:51PM +0200, Geert Uytterhoeven wrote:
> Mac Sonic Ethernet updates (from Matthias Urlichs in 2.6):
>   - Fix memory leak in error path
>   - Kill obsolete namespace stuff
>   - Kill duplicate `MODULE_LICENSE("GPL");' (already defined in included
>     sonic.c) which causes a compile failure
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

ACK

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-20 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-20 17:20 [PATCH 155] Mac Sonic Ethernet Geert Uytterhoeven
2004-06-20 18:32 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®