Re: [v1 PATCH] ucc_geth: fix ethtool set ring param bug

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Ben Hutchings
Date: Wednesday, September 1, 2010 - 6:42 am

On Wed, 2010-09-01 at 09:43 +0800, Liang Li wrote:
[...]
[...]

Bringing the interface down will call ucc_geth_close(), which will try
to free resources that have not been allocated!

If you cannot roll back a failed change then at least use dev_close()
and dev_open() rather than calling ucc_geth_{close,open}() directly, so
that the interface state is updated correctly.  Or just refuse to make
the change if the interface is up.

Ben.

-- 
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] ucc_geth: fix ethtool set ring param bug, Liang Li, (Mon Aug 30, 7:47 am)
Re: [PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Tue Aug 31, 7:41 am)
Re: [PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Tue Aug 31, 8:23 am)
Re: [v1 PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Wed Sep 1, 6:42 am)
Re: [v1 PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Thu Sep 2, 4:11 am)
Re: [v1 PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Thu Sep 2, 9:32 am)
Re: [v2 PATCH] ucc_geth: fix ethtool set ring param bug, Ben Hutchings, (Thu Sep 2, 11:04 am)