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-08-08 11:31:40 -07:00
2022-10-21 12:38:00 +02:00
2022-08-30 11:12:52 +01:00
2022-09-02 10:50:08 -07:00
2022-09-28 20:47:31 +09:00
2022-08-08 20:51:59 -07:00
2022-10-21 12:37:38 +02:00
2022-09-27 18:30:49 -04:00
2022-10-21 12:38:11 +02:00
2022-08-29 22:33:46 +05:30
2022-10-21 12:37:46 +02:00
2022-09-28 18:37:36 -07:00
2022-10-21 12:37:42 +02:00
2022-08-04 19:30:35 -07:00
2022-09-22 14:26:37 +02:00
2022-10-21 12:37:59 +02:00
2022-08-08 14:29:00 -07:00
2022-10-15 08:02:57 +02:00
2022-08-05 16:11:38 -07:00
2022-09-24 18:05:53 -07:00
2022-08-08 14:29:00 -07:00
2022-10-21 12:37:41 +02:00
2022-08-25 13:10:30 +02:00
2022-08-06 16:38:17 -07:00
2022-07-28 22:21:54 -07:00
2022-10-21 12:37:54 +02:00
2022-09-19 12:58:19 +08:00
2022-10-21 12:37:45 +02:00
2022-10-21 12:37:58 +02:00
2022-10-21 12:37:37 +02:00
2022-09-05 17:02:15 +00:00
2022-10-21 12:38:20 +02:00
2022-08-05 10:07:23 -07:00
2022-10-21 12:38:17 +02:00
2022-08-02 11:17:00 -07:00
2022-10-21 12:37:35 +02:00
2022-09-07 11:22:18 +03:00
2022-10-15 08:02:59 +02:00
2022-09-21 10:22:54 +02:00
2022-09-16 09:25:51 +01:00
2022-10-21 12:38:19 +02:00
2022-10-21 12:38:02 +02:00
2022-08-08 10:19:40 -07:00
2022-10-21 12:37:40 +02:00
2022-10-01 09:27:18 -07:00
2022-08-08 14:29:00 -07:00
2022-08-04 19:41:09 -07:00
2022-08-06 10:25:16 -07:00
2022-10-15 08:02:59 +02:00
2022-10-21 12:37:36 +02:00
2022-10-21 12:37:32 +02:00
2022-10-21 12:38:21 +02:00
2022-08-22 14:51:30 +01:00
2022-08-09 17:54:03 -04:00
2022-09-24 18:14:12 -07:00
2022-10-21 12:37:40 +02:00
2022-10-21 12:37:40 +02:00
2022-08-16 11:29:57 -06:00
2022-08-16 10:48:08 +05:30
2022-09-15 07:33:26 +02:00
2022-10-21 12:37:43 +02:00
2022-08-15 20:31:35 +02:00
2022-10-21 12:37:39 +02:00
2022-08-30 10:32:33 +05:30
2022-10-21 12:37:46 +02:00
2022-10-21 12:37:37 +02:00
2022-07-22 17:23:45 -05:00
2022-08-12 09:37:33 -07:00
2022-10-21 12:37:44 +02:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-10-21 12:37:38 +02:00
2022-08-16 01:40:24 -04:00
2022-09-22 17:48:35 +02:00
2022-10-21 12:37:53 +02:00
2022-08-09 00:56:41 +02:00
2022-09-24 17:35:42 -07:00
2022-10-21 12:37:45 +02:00
2022-10-21 12:37:45 +02:00
2022-09-23 14:29:00 +02:00
2022-09-01 14:26:44 +05:30
2022-10-21 12:38:19 +02:00
2022-10-21 12:37:55 +02:00
2022-08-13 13:41:48 -07:00
2022-08-25 11:40:06 +02:00
2022-10-21 12:37:59 +02:00
2022-10-21 12:37:53 +02:00
2022-10-21 12:37:44 +02:00
2022-08-19 21:34:36 -04:00
2022-10-21 12:37:35 +02:00
2022-09-27 18:32:45 -04:00
2022-09-09 07:44:33 -04:00
2022-10-21 12:38:19 +02:00
2022-10-21 12:37:46 +02:00
2022-09-01 13:00:48 -06:00
2022-08-16 01:40:24 -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