NFC: digital: Fix a memory leak in NFC-F listening mode
authorThierry Escande <thierry.escande@collabora.com>
Thu, 16 Jun 2016 18:24:41 +0000 (20:24 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 6 Jul 2016 08:03:08 +0000 (10:03 +0200)
commitb77693447db987e77a39afaa8774e8702cb110d5
treec16ef17f147b8a7b45cd98686f9ce5b8e4237d69
parent8f49bec6c36c73f0c212e07229b19fb4bba85788
NFC: digital: Fix a memory leak in NFC-F listening mode

When configured as a target listening for a SENSF_REQ poll command, a
nfcid2 array was allocated for no reason leading to a memory leak. The
nfcid2 is sent by the target in the SENSF_RES reply.

Signed-off-by: Thierry Escande <thierry.escande@collabora.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_technology.c
This page took 0.026044 seconds and 5 git commands to generate.