Maxim Mikityanskiy 8557669725 net: wwan: iosm: Call mutex_init before locking it
[ Upstream commit ba0fbdb95da5ddd8db457ce6ba09d16dd979a294 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:38:21 +02:00
..
2022-09-28 18:37:36 -07:00
2022-08-04 19:30:35 -07:00
2022-08-06 16:38:17 -07:00
2022-10-21 12:37:37 +02:00
2022-08-05 10:07:23 -07:00
2022-10-21 12:38:17 +02:00
2022-10-01 09:27:18 -07:00
2022-08-04 19:41:09 -07:00
2022-08-06 10:25:16 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-09 00:56:41 +02:00
2022-09-24 17:35:42 -07:00
2022-09-23 14:29:00 +02:00
2022-08-13 13:41:48 -07:00
2022-09-09 07:44:33 -04:00
2022-08-08 15:04:04 -07:00
2022-10-21 12:37:43 +02:00
2022-08-04 12:01:42 -07:00