]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
NFC: Fix incorrect llcp pointer dereference
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Mon, 26 Nov 2012 07:40:04 +0000 (08:40 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 28 Nov 2012 17:42:04 +0000 (18:42 +0100)
commit289814918ce3af1296ac7d9b05508bde64e97348
tree3f9177e30161d0ece3bb426c735d122fda71ee3c
parent6bdd253f635f7b2ef027d116933a6c9ec148b87f
NFC: Fix incorrect llcp pointer dereference

nfc_llcp_ns(s) dereferences the s pointer which is freed a line
above. In a result, it can produce a crash or you will read
incorrect value.

Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/llcp/llcp.c