NFC: digital: Fix a possible memory leak
authorThierry Escande <thierry.escande@linux.intel.com>
Wed, 12 Feb 2014 13:27:51 +0000 (14:27 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 16 Feb 2014 22:49:55 +0000 (23:49 +0100)
commit6ea7398d00345a33b47d905875416ca4421838de
tree53109341d092b714925e7b43f91516a1545443ef
parent564af14e36742f5900e40d48dcf30a3414acb143
NFC: digital: Fix a possible memory leak

This fixes a memory leak issue that may occur if data sending fails in
initiator mode. The data_exch structure was not released in case of
error.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_core.c