[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <517925D1.2030509@cogentembedded.com>
Date: Thu, 25 Apr 2013 16:47:13 +0400
From: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
CC: Mugunthan V N <mugunthanvnm@...com>, tglx@...utronix.de,
netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>
Subject: Re: [PATCH 2/4] net/cpsw: make sure modules remove does not leak
any ressources
Hello.
On 24-04-2013 22:48, Sebastian Andrzej Siewior wrote:
> This driver does not clean up properly after leaving. Here is a list:
> - Use unregister_netdev(). free_netdev() is good but not enough
> - Use the above also on the other ndev in case of dual mac
> - Free data.slave_data. The name of the strucre makes it look like
s/strucre/structure/
> it is platform_data but it is not. It is just a trick!
> - Free all irqs. Again: freeing one irq is good start, but freeing all
> of them is better.
> With this rmmod & modprobe of cpsw seems to work. The remaining issue
> is:
> |WARNING: at fs/sysfs/dir.c:536 sysfs_add_one+0x9c/0xd4()
> |sysfs: cannot create duplicate filename '/devices/ocp.2/4a100000.ethernet/4a101000.mdio'
> |WARNING: at lib/kobject.c:196 kobject_add_internal+0x1a4/0x1c8()
> comming from of_platform_populate() and I am not sure that this belongs
> here.
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
WBR, Sergei
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists