NFC: nfcmrvl: Fix possible memory leak issue
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 8 Jan 2014 18:52:27 +0000 (10:52 -0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 9 Jan 2014 00:27:20 +0000 (01:27 +0100)
commitbb55dc2ae4367b8f711d43a2f8668a6ed42c4fd3
tree48417a9794a29f28b9870c4279a1e3547b96cf8a
parentb711ad524bf5a6a078c4d0a1a44ca1db204802f6
NFC: nfcmrvl: Fix possible memory leak issue

This patch fixes memory leaks in the error paths of
nfcmrvl_nci_register_dev() routine.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/nfcmrvl/main.c