Yang Yingliang
58d6fb6a93
pcmcia: cs: fix possible hung task and memory leak pccardd()
...
[ Upstream commit e3ea1b4847e49234e691c0d66bf030bd65bb7f2b ]
If device_register() returns error in pccardd(), it leads two issues:
1. The socket_released has never been completed, it will block
pcmcia_unregister_socket(), because of waiting for completion
of socket_released.
2. The device name allocated by dev_set_name() is leaked.
Fix this two issues by calling put_device() when device_register() fails.
socket_released can be completed in pcmcia_release_socket(), the name can
be freed in kobject_cleanup().
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com >
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2023-11-20 10:30:14 +01:00
..
2023-11-20 10:30:10 +01:00
2023-09-23 10:59:52 +02:00
2023-08-16 18:19:23 +02:00
2023-11-08 11:23:42 +01:00
2023-06-09 10:29:01 +02:00
2023-11-20 10:30:10 +01:00
2023-11-08 11:23:42 +01:00
2023-10-25 11:53:20 +02:00
2023-10-10 21:46:39 +02:00
2023-11-20 10:30:12 +01:00
2023-11-20 10:30:12 +01:00
2023-07-27 08:37:05 +02:00
2023-05-17 11:35:31 +02:00
2023-09-23 10:59:56 +02:00
2023-11-20 10:30:12 +01:00
2023-09-23 10:59:54 +02:00
2023-01-18 11:41:21 +01:00
2023-11-20 10:30:14 +01:00
2023-08-30 16:27:28 +02:00
2023-05-17 11:35:35 +02:00
2023-07-27 08:37:20 +02:00
2023-06-09 10:29:01 +02:00
2023-11-20 10:30:12 +01:00
2023-05-17 11:35:46 +02:00
2023-09-23 10:59:37 +02:00
2023-10-25 11:53:24 +02:00
2023-11-20 10:30:11 +01:00
2023-11-20 10:30:12 +01:00
2023-01-18 11:41:28 +01:00
2023-06-28 10:18:36 +02:00
2023-11-20 10:30:11 +01:00
2023-09-23 10:59:50 +02:00
2023-11-08 11:23:37 +01:00
2023-11-20 10:30:14 +01:00
2023-06-09 10:29:01 +02:00
2023-11-08 11:23:36 +01:00
2023-11-20 10:30:13 +01:00
2023-11-08 11:23:40 +01:00
2023-08-30 16:27:27 +02:00
2023-09-23 10:59:50 +02:00
2023-11-20 10:30:12 +01:00
2023-08-16 18:19:23 +02:00
2023-11-20 10:30:13 +01:00
2023-05-17 11:35:50 +02:00
2023-07-27 08:37:23 +02:00
2023-11-08 11:23:34 +01:00
2023-09-23 11:00:06 +02:00
2023-09-23 11:00:05 +02:00
2023-07-27 08:37:14 +02:00
2023-07-27 08:37:10 +02:00
2023-05-30 12:44:03 +01:00
2023-11-20 10:30:13 +01:00
2023-11-20 10:30:13 +01:00
2023-10-25 11:53:24 +02:00
2023-11-08 11:23:34 +01:00
2023-11-20 10:30:10 +01:00
2023-06-28 10:18:41 +02:00
2023-09-23 10:59:55 +02:00
2023-11-20 10:30:12 +01:00
2023-11-08 11:23:42 +01:00
2023-11-08 11:23:37 +01:00
2023-09-23 10:59:46 +02:00
2023-09-23 10:59:40 +02:00
2023-10-10 21:46:39 +02:00
2023-11-08 11:23:42 +01:00
2023-11-20 10:30:14 +01:00
2023-09-23 11:00:03 +02:00
2023-10-25 11:53:25 +02:00
2023-10-25 11:53:24 +02:00
2023-11-20 10:30:11 +01:00
2023-06-21 15:44:09 +02:00
2023-07-27 08:37:06 +02:00
2023-04-05 11:16:43 +02:00
2023-10-25 11:53:17 +02:00
2023-01-18 11:40:59 +01:00
2023-10-25 11:53:23 +02:00
2023-05-17 11:36:01 +02:00
2023-11-20 10:30:12 +01:00
2023-11-08 11:23:40 +01:00
2023-11-20 10:30:14 +01:00
2023-10-10 21:46:42 +02:00
2023-11-20 10:30:13 +01:00
2023-11-20 10:30:12 +01:00
2023-11-08 11:23:41 +01:00
2023-05-17 11:35:49 +02:00
2023-06-09 10:29:01 +02:00
2023-09-23 10:59:37 +02:00
2023-10-10 21:46:43 +02:00
2023-11-20 10:30:09 +01:00
2023-04-05 11:16:39 +02:00
2023-11-20 10:30:13 +01:00
2023-01-18 11:41:22 +01:00
2023-11-20 10:30:14 +01:00
2023-01-18 11:41:22 +01:00
2023-06-09 10:29:01 +02:00
2023-11-08 11:23:41 +01:00
2023-11-08 11:23:34 +01:00
2023-01-18 11:41:26 +01:00
2023-07-27 08:37:19 +02:00
2023-10-10 21:46:40 +02:00
2023-10-10 21:46:46 +02:00