diff options
| author | Hemant Kumar <hemantk@codeaurora.org> | 2015-03-20 21:17:28 -0700 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:02:50 -0700 |
| commit | e9c2362e33a45fdd2adfd87f12a108bfc27af980 (patch) | |
| tree | 39010102bdb5d6758283027f093979d6c5165818 /include | |
| parent | d025d9d53023d9f411d3f1dcf72712ae8fa5a552 (diff) | |
usb: gadget: Invalidate interface id upon adding function to config
Commit e9df68ade ("usb: gadget: f_mbim: Queue notification request
upon function resume") added variable to store interface id in
usb_interface_id(). This interface id is used to send function wake
device notification. Functions having control interface and data
interface calls usb_interface_id() twice causing invalid interface
index stored in the variable. This is causing remote wakeup failure.
Fix this issue by initializing variable to -EINVAL and set it to
interface index only when it is invalidated.
CRs-Fixed: 810737
Change-Id: I41bce0a71ce0b8e92f3736d4e292132ce16de021
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Azhar Shaikh <azhars@codeaurora.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
