From: David Miller <davem@davemloft.net>
To: bjorn@mork.no
Cc: netdev@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH net v2] net: qmi_wwan: call subdriver with control intf only
Date: Thu, 13 Sep 2012 16:12:44 -0400 (EDT) [thread overview]
Message-ID: <20120913.161244.1284900183437043445.davem@davemloft.net> (raw)
In-Reply-To: <1347518675-8427-1-git-send-email-bjorn@mork.no>
From: Bjørn Mork <bjorn@mork.no>
Date: Thu, 13 Sep 2012 08:44:35 +0200
> This fixes a hang on suspend due to calling wdm_suspend on
> the unregistered data interface. The hang should have been
> a NULL pointer reference had it not been for a logic error
> in the cdc_wdm code.
>
> commit 230718bd net: qmi_wwan: bind to both control and data interface
>
> changed qmi_wwan to use cdc_wdm as a subdriver for devices with
> a two-interface QMI/wwan function. The commit failed to update
> qmi_wwan_suspend and qmi_wwan_resume, which were written to handle
> either a single combined interface function, or no subdriver at all.
>
> The result was that we called into the subdriver both when the
> control interface was suspended and when the data interface was
> suspended. Calling the subdriver suspend function with an
> unregistered interface is not supported and will make the
> subdriver bug out.
>
> Signed-off-by: Bjørn Mork <bjorn@mork.no>
Applied, thanks.
next prev parent reply other threads:[~2012-09-13 20:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-10 20:15 [PATCH net] net: qmi_wwan: call subdriver with control intf only Bjørn Mork
[not found] ` <1347308150-19088-1-git-send-email-bjorn-yOkvZcmFvRU@public.gmane.org>
2012-09-13 6:44 ` [PATCH net v2] " Bjørn Mork
2012-09-13 20:12 ` David Miller [this message]
2012-09-20 21:54 ` [PATCH net] " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120913.161244.1284900183437043445.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=bjorn@mork.no \
--cc=linux-usb@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).