aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/nci
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2015-10-17 11:32:19 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2015-10-19 20:10:37 +0200
commit9abebb8a10ce93db45327bd3a4d06801e6db92f2 (patch)
treea968400c5287a50c57b4126bd05676b33e3e095e /net/nfc/nci
parentNFC: nfcwilink: Drop a useless static qualifier (diff)
downloadlinux-dev-9abebb8a10ce93db45327bd3a4d06801e6db92f2.tar.xz
linux-dev-9abebb8a10ce93db45327bd3a4d06801e6db92f2.zip
NFC: delete null dereference
The exit label performs device_unlock(&dev->dev);, which will fail when dev is NULL, and nfc_put_device(dev);, which is not useful when dev is NULL, so just exit the function immediately. Problem found using scripts/coccinelle/null/deref_null.cocci Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc/nci')
0 files changed, 0 insertions, 0 deletions