mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
Merge "msm: ipa3: Fix null pointer dereference error"
This commit is contained in:
commit
08b7be4f68
1 changed files with 1 additions and 1 deletions
|
|
@ -179,7 +179,7 @@ static int ipa3_nat_ipv6ct_mmap(
|
|||
/*
|
||||
* Check if no smmu or non dma coherent
|
||||
*/
|
||||
if (!cb->valid || !dev_is_dma_coherent(cb->dev)) {
|
||||
if (cb && cb->dev && (!cb->valid || !dev_is_dma_coherent(cb->dev))) {
|
||||
|
||||
IPADBG("Either smmu valid=%u and/or DMA coherent=%u false\n",
|
||||
cb->valid, !dev_is_dma_coherent(cb->dev));
|
||||
|
|
|
|||
Loading…
Reference in a new issue