* [PATCHv2] hso: fix disable_net @ 2010-11-25 13:40 Filip Aben 2010-11-25 15:03 ` Johan Hovold 0 siblings, 1 reply; 6+ messages in thread From: Filip Aben @ 2010-11-25 13:40 UTC (permalink / raw) To: davem-fT/PcQaiUtIeIZ0/mPfg9Q Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, jhovold-Re5JQEeQqe8AvxtiuMwx3w, pki-/L4m51SJ8HhmR6Xm/wNWPw The HSO driver incorrectly creates a serial device instead of a net device when disable_net is set. It shouldn't create anything for the network interface. Signed-off-by: Filip Aben <f.aben-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> --- diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index b154a94..1b755ae 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -2994,12 +2994,14 @@ static int hso_probe(struct usb_interface *interface, case HSO_INTF_BULK: /* It's a regular bulk interface */ - if (((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK) && - !disable_net) - hso_dev = hso_create_net_device(interface, port_spec); - else + if ((port_spec & HSO_PORT_MASK) == HSO_PORT_NETWORK) { + if(!disable_net) + hso_dev = + hso_create_net_device(interface, port_spec); + } else { hso_dev = hso_create_bulk_serial_device(interface, port_spec); + } if (!hso_dev) goto exit; break; -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCHv2] hso: fix disable_net 2010-11-25 13:40 [PATCHv2] hso: fix disable_net Filip Aben @ 2010-11-25 15:03 ` Johan Hovold [not found] ` <AANLkTikODWoXB1PmB+SFbFWenYm_-o+RJ+czK9LnaXmn-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Johan Hovold @ 2010-11-25 15:03 UTC (permalink / raw) To: Filip Aben; +Cc: davem, linux-usb, netdev, pki On Thu, Nov 25, 2010 at 2:40 PM, Filip Aben <f.aben@option.com> wrote: > The HSO driver incorrectly creates a serial device instead of a net > device when disable_net is set. It shouldn't create anything for the > network interface. > > Signed-off-by: Filip Aben <f.aben@option.com> Please add the appropriate Reported-by-tags as well, e.g. Reported-by: Piotr Isajew <pki@ex.com.pl> Reported-by: Johan Hovold <jhovold@gmail.com> As this patch is meant to fix a driver crash, perhaps it should be marked for stable as well? Thanks, Johan ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <AANLkTikODWoXB1PmB+SFbFWenYm_-o+RJ+czK9LnaXmn-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCHv2] hso: fix disable_net [not found] ` <AANLkTikODWoXB1PmB+SFbFWenYm_-o+RJ+czK9LnaXmn-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> @ 2010-11-25 16:01 ` Filip Aben 2010-11-25 16:25 ` Johan Hovold 0 siblings, 1 reply; 6+ messages in thread From: Filip Aben @ 2010-11-25 16:01 UTC (permalink / raw) To: Johan Hovold Cc: davem-fT/PcQaiUtIeIZ0/mPfg9Q, linux-usb-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, pki-/L4m51SJ8HhmR6Xm/wNWPw On Thu, 2010-11-25 at 16:03 +0100, Johan Hovold wrote: > On Thu, Nov 25, 2010 at 2:40 PM, Filip Aben <f.aben-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> wrote: > > The HSO driver incorrectly creates a serial device instead of a net > > device when disable_net is set. It shouldn't create anything for the > > network interface. > > > > Signed-off-by: Filip Aben <f.aben-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> > > Please add the appropriate Reported-by-tags as well, e.g. > > Reported-by: Piotr Isajew <pki-/L4m51SJ8HhmR6Xm/wNWPw@public.gmane.org> > Reported-by: Johan Hovold <jhovold-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> I would have gladly done so if you included that in your comment on the previous patch :) > > As this patch is meant to fix a driver crash, perhaps it should be marked for > stable as well? > I don't think it's that critical: it only applies to people explicitly loading the module with disable_net set. But feel free to queue it up for stable. Thanks, Filip- -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] hso: fix disable_net 2010-11-25 16:01 ` Filip Aben @ 2010-11-25 16:25 ` Johan Hovold 2010-11-26 20:18 ` Jan Ceuleers 0 siblings, 1 reply; 6+ messages in thread From: Johan Hovold @ 2010-11-25 16:25 UTC (permalink / raw) To: Filip Aben Cc: davem-fT/PcQaiUtIeIZ0/mPfg9Q, linux-usb-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, pki-/L4m51SJ8HhmR6Xm/wNWPw On Thu, Nov 25, 2010 at 5:01 PM, Filip Aben <f.aben-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> wrote: > On Thu, 2010-11-25 at 16:03 +0100, Johan Hovold wrote: >> Please add the appropriate Reported-by-tags as well, e.g. >> >> Reported-by: Piotr Isajew <pki-/L4m51SJ8HhmR6Xm/wNWPw@public.gmane.org> >> Reported-by: Johan Hovold <jhovold-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > > I would have gladly done so if you included that in your comment on the > previous patch :) What is stopping you from submitting a v3? :) But perhaps David can pick those up from the thread. Not sure how this is usually dealt with on netdev. Thanks, Johan -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCHv2] hso: fix disable_net 2010-11-25 16:25 ` Johan Hovold @ 2010-11-26 20:18 ` Jan Ceuleers [not found] ` <4CF01604.9010401-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Jan Ceuleers @ 2010-11-26 20:18 UTC (permalink / raw) To: Johan Hovold; +Cc: Filip Aben, davem, linux-usb, netdev, pki On 25/11/10 17:25, Johan Hovold wrote: > On Thu, Nov 25, 2010 at 5:01 PM, Filip Aben<f.aben@option.com> wrote: >> On Thu, 2010-11-25 at 16:03 +0100, Johan Hovold wrote: >>> Please add the appropriate Reported-by-tags as well, e.g. >>> >>> Reported-by: Piotr Isajew<pki@ex.com.pl> >>> Reported-by: Johan Hovold<jhovold@gmail.com> >> >> I would have gladly done so if you included that in your comment on the >> previous patch :) > > What is stopping you from submitting a v3? :) > > But perhaps David can pick those up from the thread. Not sure how this > is usually dealt with on netdev. Automatically taken care of by patchwork: http://patchwork.ozlabs.org/patch/73060/mbox/ ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <4CF01604.9010401-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org>]
* Re: [PATCHv2] hso: fix disable_net [not found] ` <4CF01604.9010401-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org> @ 2010-11-28 19:45 ` David Miller 0 siblings, 0 replies; 6+ messages in thread From: David Miller @ 2010-11-28 19:45 UTC (permalink / raw) To: jan.ceuleers-bdq14YP6qtRg9hUCZPvPmw Cc: jhovold-Re5JQEeQqe8AvxtiuMwx3w, f.aben-x9gZzRpC1QbQT0dZR+AlfA, linux-usb-u79uwXL29TY76Z2rM5mHXA, netdev-u79uwXL29TY76Z2rM5mHXA, pki-/L4m51SJ8HhmR6Xm/wNWPw From: Jan Ceuleers <jan.ceuleers-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org> Date: Fri, 26 Nov 2010 21:18:12 +0100 > On 25/11/10 17:25, Johan Hovold wrote: >> On Thu, Nov 25, 2010 at 5:01 PM, Filip Aben<f.aben-x9gZzRpC1QbQT0dZR+AlfA@public.gmane.org> wrote: >>> On Thu, 2010-11-25 at 16:03 +0100, Johan Hovold wrote: >>>> Please add the appropriate Reported-by-tags as well, e.g. >>>> >>>> Reported-by: Piotr Isajew<pki-/L4m51SJ8HhmR6Xm/wNWPw@public.gmane.org> >>>> Reported-by: Johan Hovold<jhovold-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> >>> >>> I would have gladly done so if you included that in your comment on >>> the >>> previous patch :) >> >> What is stopping you from submitting a v3? :) >> >> But perhaps David can pick those up from the thread. Not sure how this >> is usually dealt with on netdev. > > Automatically taken care of by patchwork: > > http://patchwork.ozlabs.org/patch/73060/mbox/ Right :-) I'll apply this, thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-11-28 19:45 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-11-25 13:40 [PATCHv2] hso: fix disable_net Filip Aben 2010-11-25 15:03 ` Johan Hovold [not found] ` <AANLkTikODWoXB1PmB+SFbFWenYm_-o+RJ+czK9LnaXmn-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org> 2010-11-25 16:01 ` Filip Aben 2010-11-25 16:25 ` Johan Hovold 2010-11-26 20:18 ` Jan Ceuleers [not found] ` <4CF01604.9010401-bdq14YP6qtRg9hUCZPvPmw@public.gmane.org> 2010-11-28 19:45 ` David Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).