commit | 8b05665b74e3def1c1dba63958a4b009402f6479 | [log] [tgz] |
---|---|---|
author | Madhvapathi Sriram <msriram@codeaurora.org> | Wed Mar 27 17:38:12 2019 +0530 |
committer | nshrivas <nshrivas@codeaurora.org> | Mon Apr 01 04:48:24 2019 -0700 |
tree | c5cdec755901e69c51832aadbc51b978b19a6134 | |
parent | 006f1ff2308774ad858eefa6a7f58e09398a9d8a [diff] |
qcacld-3.0: Check the netdev validity before deferencing it If the netdevice registration fails, the netdevice is freed by referencing the context in the adapter structure. However, in some scenarios the registration failure can result in the netdev ops uninit being called where the reference is reset and hence invalid. Fix this by saving the netdevice in a local variable Change-Id: Id01bf5d3fe633432695520bda77697842ced9ff1 CRs-Fixed: 2423508