mei: nfc: fix memory leak in error path
authorAlexander Usyskin <alexander.usyskin@intel.com>
Tue, 12 Aug 2014 15:07:57 +0000 (18:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Aug 2014 20:16:23 +0000 (13:16 -0700)
commit8e8248b1369c97c7bb6f8bcaee1f05deeabab8ef
treeaba113db74ade06690667af99e92776be8d13a9c
parent73ab4232388b7a08f17c8d08141ff2099fa0b161
mei: nfc: fix memory leak in error path

NFC will leak buffer if send failed.
Use single exit point that does the freeing

Cc: stable@vger.kernel.org #3.10+
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/nfc.c