Skip to content
Commit 6f874baf authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Samuel Ortiz
Browse files

NFC: add NULL checks to avoid potential NULL pointer dereference



NULL checks at line 457: if (!link0 || !link1) {, implies that both
pointers link0 and link1 might be NULL.
Function nfcsim_link_free() dereference pointers link0 and link1.
Add NULL checks before calling nfcsim_link_free() to avoid a
potential NULL pointer dereference.

Addresses-Coverity-ID: 1364857
Signed-off-by: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 03036184
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