Yang Yingliang
0613ad2401
mmc: vub300: fix return value check of mmc_add_host()
...
mmc_add_host() may return error, if we ignore its return value, the memory
that allocated in mmc_alloc_host() will be leaked and it will lead a kernel
crash because of deleting not added device in the remove path.
So fix this by checking the return value and goto error path which will call
mmc_free_host(), besides, the timer added before mmc_add_host() needs be del.
And this patch fixes another missing call mmc_free_host() if usb_control_msg()
fails.
Fixes: 88095e7b473a ("mmc: Add new VUB300 USB-to-SD/SDIO/MMC driver")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221101063023.1664968-9-yangyingliang@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2022-12-07 13:22:35 +01:00
..
2022-11-09 15:25:24 +01:00
2022-11-18 23:55:40 -08:00
2022-11-09 15:41:27 +01:00
2022-11-12 07:51:06 +09:00
2022-10-28 16:48:29 -07:00
2022-10-12 10:23:24 -07:00
2022-11-25 17:50:57 -08:00
2022-11-02 14:15:42 -07:00
2022-11-22 23:12:18 +01:00
2022-12-04 12:49:13 -08:00
2022-11-22 18:27:07 -08:00
2022-12-01 12:05:29 +01:00
2022-10-23 20:39:26 -04:00
2022-11-22 19:57:15 +01:00
2022-10-09 13:24:01 -07:00
2022-10-10 13:04:25 -07:00
2022-11-04 16:03:43 -07:00
2022-11-21 15:34:40 -08:00
2022-09-26 03:59:43 +09:00
2022-11-08 10:43:57 +05:30
2022-11-22 18:27:56 +05:30
2022-10-13 11:07:13 -07:00
2022-11-08 16:45:31 +01:00
2022-11-18 10:29:25 -08:00
2022-11-15 21:46:58 +08:00
2022-09-28 21:10:57 +09:30
2022-10-20 13:47:54 +02:00
2022-12-02 15:35:21 -08:00
2022-11-11 09:03:19 -08:00
2022-11-21 10:57:42 +00:00
2022-12-01 09:20:55 -08:00
2022-10-25 19:08:07 +02:00
2022-12-02 00:12:25 +01:00
2022-10-12 23:45:29 +02:00
2022-09-21 20:33:49 +02:00
2022-11-14 20:20:08 +00:00
2022-10-28 12:59:40 -03:00
2022-12-04 12:18:37 -08:00
2022-12-02 11:45:33 +01:00
2022-10-08 08:56:37 -07:00
2022-10-12 10:23:24 -07:00
2022-11-14 10:43:13 +00:00
2022-10-24 11:32:10 +02:00
2022-10-09 14:05:15 -07:00
2022-10-05 21:51:58 -05:00
2022-11-18 13:59:45 -08:00
2022-12-02 13:33:57 -08:00
2022-10-23 12:04:56 -07:00
2022-11-09 15:40:03 +01:00
2022-12-07 13:22:35 +01:00
2022-11-07 16:53:04 +01:00
2022-11-29 08:41:01 -08:00
2022-11-23 20:01:50 -08:00
2022-10-14 18:41:41 -07:00
2022-12-02 16:27:15 -08:00
2022-11-22 18:22:05 +01:00
2022-11-22 17:22:52 -06:00
2022-10-27 09:12:05 +02:00
2022-11-09 15:40:32 +01:00
2022-11-12 12:43:59 +00:00
2022-09-27 08:12:16 +02:00
2022-10-14 12:38:03 -07:00
2022-11-05 13:01:25 +05:30
2022-11-28 21:41:31 +01:00
2022-11-16 10:36:13 -08:00
2022-10-10 18:11:11 +02:00
2022-11-01 01:00:32 +01:00
2022-10-10 09:10:28 -07:00
2022-10-10 08:37:24 +01:00
2022-10-07 11:32:10 -07:00
2022-11-25 13:54:48 -08:00
2022-10-05 09:20:44 -06:00
2022-10-08 10:06:48 -07:00
2022-09-21 11:21:33 -06:00
2022-10-18 22:36:54 +02:00
2022-11-25 17:50:57 -08:00
2022-11-25 12:32:42 -08:00
2022-11-09 15:40:14 +01:00
2022-11-10 18:45:40 +01:00
2022-11-14 15:52:53 +08:00
2022-10-28 17:00:38 +05:30
2022-11-23 11:19:06 -08:00
2022-09-30 14:33:23 +02:00
2022-11-18 12:02:38 -08:00
2022-11-17 17:46:16 +00:00
2022-11-17 09:22:12 +01:00
2022-10-15 19:33:57 +02:00
2022-10-11 17:42:58 -06:00
2022-11-18 10:59:52 -08:00
2022-10-22 03:29:32 +00:00
2022-11-22 16:52:05 +01:00
2022-10-10 14:02:53 -07:00
2022-11-10 12:03:36 -07:00
2022-10-10 14:02:53 -07:00
2022-11-25 09:21:11 +10:00
2022-11-21 11:03:40 +01:00
2022-10-13 09:33:03 -04:00
2022-10-08 08:56:37 -07:00
2022-11-01 12:21:53 -07:00
2022-11-16 10:49:06 -08:00