Skip to content
Unverified Commit e902cdcb authored by YueHaibing's avatar YueHaibing Committed by Mark Brown
Browse files

spi/topcliff_pch: Fix potential NULL dereference on allocation error



In pch_spi_handle_dma, it doesn't check for NULL returns of kcalloc
so it would result in an Oops.

Fixes: c37f3c27 ("spi/topcliff_pch: DMA support")
Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent bfecfd6e
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