summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorZhaoyang Yu <2426767509@qq.com>2026-04-15 17:49:09 +0300
committerHans Verkuil <hverkuil+cisco@kernel.org>2026-05-05 17:57:02 +0300
commit3eaac9e02d8591d3c790db572ef1c8fa5a841fdb (patch)
tree076c27862f967f8c3f690fc323e2939032be107c /include/linux/timerqueue.h
parente42469304440d6b351b34eddb9284f198ceaf969 (diff)
downloadlinux-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