Skip to content
Commit f6510a93 authored by Yuan Can's avatar Yuan Can Committed by Greg Kroah-Hartman
Browse files

staging: emxx_udc: Add checks for dma_alloc_coherent()



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

Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Reviewed-by: default avatarSimon Horman <horms@verge.net.au>
Link: https://lore.kernel.org/r/20230119083119.16956-1-yuancan@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4193769b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment