linux-stable/drivers/staging/emxx_udc
Yuan Can 3c8dce696a staging: emxx_udc: Add checks for dma_alloc_coherent()
[ Upstream commit f6510a93cf ]

As the dma_alloc_coherent may return NULL, the return value needs to be
checked to avoid NULL poineter dereference.

Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Simon Horman <horms@verge.net.au>
Link: https://lore.kernel.org/r/20230119083119.16956-1-yuancan@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-11 13:55:34 +01:00
..
emxx_udc.c staging: emxx_udc: Add checks for dma_alloc_coherent() 2023-03-11 13:55:34 +01:00
emxx_udc.h
Kconfig
Makefile
TODO