diff options
author | 2022-10-01 13:57:13 +0300 | |
---|---|---|
committer | 2022-10-03 13:25:43 +0100 | |
commit | ba0fbdb95da5ddd8db457ce6ba09d16dd979a294 (patch) | |
tree | 5c8acf7fa5d1d0d2b67ad896491db7afe4c60400 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | eth: sp7021: fix use after free bug in spl2sw_nvmem_get_mac_address (diff) | |
download | wireguard-linux-ba0fbdb95da5ddd8db457ce6ba09d16dd979a294.tar.xz wireguard-linux-ba0fbdb95da5ddd8db457ce6ba09d16dd979a294.zip |
net: wwan: iosm: Call mutex_init before locking it
wwan_register_ops calls wwan_create_default_link, which ends up in the
ipc_wwan_newlink callback that locks ipc_wwan->if_mutex. However, this
mutex is not yet initialized by that point. Fix it by moving mutex_init
above the wwan_register_ops call. This also makes the order of
operations in ipc_wwan_init symmetric to ipc_wwan_deinit.
Fixes: 83068395bbfc ("net: iosm: create default link via WWAN core")
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Reviewed-by: M Chetan Kumar <m.chetan.kumar@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions