From cf14e914d3892a77b227da5e00fe788322603c60 Mon Sep 17 00:00:00 2001
From: Dave Jones <davej@codemonkey.org.uk>
Date: Mon, 25 Nov 2002 02:35:41 -0800
Subject: [PATCH] [PATCH] memleak in myri_sbus

---
 drivers/net/myri_sbus.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/net/myri_sbus.c b/drivers/net/myri_sbus.c
index 88f3f6a63e1f..4e9452ce9f36 100644
--- a/drivers/net/myri_sbus.c
+++ b/drivers/net/myri_sbus.c
@@ -1085,6 +1085,7 @@ static int __init myri_ether_init(struct net_device *dev, struct sbus_dev *sdev,
 #endif
 	return 0;
 err:	unregister_netdev(dev);
+	kfree(dev->priv);
 	kfree(dev);
 	return -ENODEV;
 }
@@ -1142,6 +1143,7 @@ static void __exit myri_sbus_cleanup(void)
 
 		unregister_netdev(root_myri_dev->dev);
 		kfree(root_myri_dev->dev);
+		kfree(root_myri_dev);
 		root_myri_dev = next;
 	}
 #endif /* MODULE */
-- 
2.30.9