diff options
| author | Zhaoyang Yu <2426767509@qq.com> | 2026-04-15 17:49:09 +0300 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2026-05-05 17:57:02 +0300 |
| commit | 3eaac9e02d8591d3c790db572ef1c8fa5a841fdb (patch) | |
| tree | 076c27862f967f8c3f690fc323e2939032be107c /include/linux/timerqueue.h | |
| parent | e42469304440d6b351b34eddb9284f198ceaf969 (diff) | |
| download | linux-3eaac9e02d8591d3c790db572ef1c8fa5a841fdb.tar.xz | |
media: dm1105: fix missing error check for dma_alloc_coherent
The return value of dm1105_dma_map(), which handles DMA memory allocation,
is ignored in dm1105_hw_init(). If dma_alloc_coherent() fails, the driver
will proceed using a NULL pointer for DMA transfers, leading to a kernel
oops or invalid hardware access.
Fix this by checking the return value and propagating -ENOMEM on failure.
Signed-off-by: Zhaoyang Yu <2426767509@qq.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
