diff options
author | Matthias Hintzmann <matthias.dev@gmx.de> | 2018-02-06 22:59:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-02-16 22:09:36 +0300 |
commit | 197ceb5fc08493bbc7913743a5b6e5aa897d3ed7 (patch) | |
tree | edb130dda389ba4753ff1c29dd6f522b1253ece1 /include/uapi/linux/utsname.h | |
parent | 1a2018a7ed150fffcba87b3ce67d56f4b9e991a7 (diff) | |
download | linux-197ceb5fc08493bbc7913743a5b6e5aa897d3ed7.tar.xz |
net: cdc_ncm: initialize drvflags before usage
ctx->drvflags is checked in the if clause before beeing initialized.
Move initialization before first usage.
Note, that the if clause was backported with commit 75f82a703b30
("cdc_ncm: Set NTB format again after altsetting switch for Huawei
devices") from mainline (upstream commit 2b02c20ce0c2 ("cdc_ncm: Set NTB
format again after altsetting switch for Huawei devices"). In mainline,
the initialization is at the right place before the if clause.
[mrkiko.rs@gmail.com: commit message tweaks]
Fixes: 75f82a703b30 ("cdc_ncm: Set NTB format again after altsetting switch for Huawei devices")
Signed-off-by: Matthias Hintzmann <matthias.dev@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/utsname.h')
0 files changed, 0 insertions, 0 deletions