Joakim Zhang
5ef6f81c32
dma-mapping: clear dev->dma_mem to NULL after freeing it
...
[ Upstream commit b07bc2347672cc8c7293c64499f1488278c5ca3d ]
Reproduced with below sequence:
dma_declare_coherent_memory()->dma_release_coherent_memory()
->dma_declare_coherent_memory()->"return -EBUSY" error
It will return -EBUSY from the dma_assign_coherent_memory()
in dma_declare_coherent_memory(), the reason is that dev->dma_mem
pointer has not been set to NULL after it's freed.
Fixes: cf65a0f6f6 ("dma-mapping: move all DMA mapping code to kernel/dma")
Signed-off-by: Joakim Zhang <joakim.zhang@cixtech.com >
Signed-off-by: Christoph Hellwig <hch@lst.de >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-01-25 14:33:34 -08:00
..
2024-01-25 14:33:33 -08:00
2023-10-25 11:16:34 +02:00
2021-03-04 09:39:31 +01:00
2024-01-25 14:33:34 -08:00
2023-12-20 15:38:03 +01:00
2023-01-18 11:30:39 +01:00
2023-11-28 16:46:34 +00:00
2022-10-26 13:19:23 +02:00
2023-11-28 16:46:30 +00:00
2023-11-28 16:46:34 +00:00
2022-04-15 14:14:45 +02:00
2023-03-11 16:31:45 +01:00
2023-10-25 11:16:26 +02:00
2023-12-13 17:42:15 +01:00
2024-01-25 14:33:30 -08:00
2023-01-18 11:30:34 +01:00
2023-08-11 11:45:01 +02:00
2022-09-05 10:26:28 +02:00
2019-12-13 08:51:11 +01:00
2023-11-28 16:46:34 +00:00
2023-08-11 11:45:01 +02:00
2020-06-22 09:05:13 +02:00
2020-06-22 09:05:13 +02:00
2023-09-23 10:48:04 +02:00
2020-01-23 08:21:29 +01:00
2023-04-05 11:15:39 +02:00
2020-06-22 09:05:28 +02:00
2023-12-13 17:42:15 +01:00
2023-12-20 15:38:01 +01:00
2023-08-11 11:45:01 +02:00
2023-06-09 10:24:02 +02:00
2020-11-24 13:27:23 +01:00
2021-09-22 11:48:09 +02:00
2023-08-11 11:45:01 +02:00
2019-04-20 09:16:02 +02:00
2019-05-31 06:46:19 -07:00
2021-03-04 09:39:30 +01:00
2020-07-16 08:17:26 +02:00
2023-08-11 11:45:06 +02:00
2023-06-21 15:39:57 +02:00
2020-04-17 10:48:52 +02:00
2023-03-11 16:31:51 +01:00
2021-07-11 12:49:31 +02:00
2021-02-10 09:21:06 +01:00
2020-01-29 16:43:27 +01:00
2023-09-23 10:47:56 +02:00
2020-03-25 08:06:13 +01:00
2023-11-28 16:46:31 +00:00
2023-02-06 07:49:46 +01:00
2021-09-22 11:48:09 +02:00
2022-08-25 11:15:20 +02:00
2022-06-14 16:59:14 +02:00
2020-11-18 19:18:52 +01:00
2023-05-17 11:13:23 +02:00
2019-09-16 08:22:20 +02:00
2022-02-16 12:51:47 +01:00
2022-07-21 21:09:32 +02:00
2022-04-20 09:12:50 +02:00
2021-02-07 14:48:38 +01:00
2022-09-05 10:26:28 +02:00
2023-01-24 07:11:49 +01:00
2022-12-08 11:18:32 +01:00
2020-01-09 10:18:59 +01:00
2021-07-20 16:15:42 +02:00
2022-02-23 11:58:39 +01:00
2020-10-14 10:31:21 +02:00
2021-05-22 10:59:39 +02:00
2023-08-11 11:45:06 +02:00
2022-08-25 11:15:46 +02:00
2023-10-25 11:16:26 +02:00