summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2019-05-28 12:03:01 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-29 03:39:01 +0300
commit0d2f68c7bcf4c7bbdd6f810f7b6e658f43d4461e (patch)
tree04c6ad8209faf8f7561b083293be2956e04d862f /scripts/const_structs.checkpatch
parentacfc3d55b7326ff280f1aa64b6d93755619071b3 (diff)
downloadlinux-0d2f68c7bcf4c7bbdd6f810f7b6e658f43d4461e.tar.xz
net: hns3: adjust hns3_uninit_phy()'s location in the hns3_client_uninit()
hns3_uninit_phy() should be called before checking HNS3_NIC_STATE_INITED flags, otherwise when this checking fails, there is nobody to call hns3_uninit_phy(). Fixes: c8a8045b2d0a ("net: hns3: Fix NULL deref when unloading driver") Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions