[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.1105181053110.2131-100000@iolanthe.rowland.org>
Date: Wed, 18 May 2011 10:54:36 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: Alexey Orishko <alexey.orishko@...il.com>
cc: netdev@...r.kernel.org, <davem@...emloft.net>, <oliver@...kum.org>,
<linux-usb@...r.kernel.org>, <gregkh@...e.de>,
Alexey Orishko <alexey.orishko@...ricsson.com>
Subject: Re: [PATCH v2] CDC NCM: release interfaces fix in unbind()
On Tue, 17 May 2011, Alexey Orishko wrote:
> Changes:
> - claim slave/data interface during bind() and release in
> unbind() unconditionally
> - in case of error during bind(), release claimed data
> interface in the same function
> - remove obsolited "*_claimed" entries from driver context
...
> @@ -572,42 +559,32 @@ advance:
> goto error;
>
> /* claim interfaces, if any */
> - if (ctx->data != intf) {
> - temp = usb_driver_claim_interface(driver, ctx->data, dev);
> - if (temp)
> - goto error;
> - ctx->data_claimed = 1;
> - }
> -
> - if (ctx->control != intf) {
> - temp = usb_driver_claim_interface(driver, ctx->control, dev);
> - if (temp)
> - goto error;
> - ctx->control_claimed = 1;
> - }
> + temp = usb_driver_claim_interface(driver, ctx->data, dev);
> + if (temp)
> + goto error;
Here and later on, the patch seems to have forgotten about the control
interface. Is this deliberate or an oversight?
Alan Stern
--
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