Commit 6a7f10c7 authored by Colin Ian King's avatar Colin Ian King Committed by Li Yang
Browse files

soc: fsl: dpio: fix dereference of pointer p before null check

Pointer p is currently being dereferenced before it is null
checked on a memory allocation failure check. Fix this by
checking if p is null before dereferencing it.

Addresses-Coverity: ("Dereference before null check")
Fixes: 3b2abda7

 ("soc: fsl: dpio: Replace QMAN array mode with ring mode enqueue")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarLi Yang <leoyang.li@nxp.com>
parent 3b2abda7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment