NFC: digital: Fix potential skb leaks in NFC-DEP code
authorMark A. Greer <mgreer@animalcreek.com>
Tue, 23 Sep 2014 23:38:02 +0000 (16:38 -0700)
committerSamuel Ortiz <sameo@linux.intel.com>
Fri, 28 Nov 2014 11:37:47 +0000 (12:37 +0100)
commitb15829ba5e82b919513f8ac70e97b4e474fae641
treec7a64e6e7db2d9de2af319b8b3a91f3310037da8
parent18ca43823f3ce111c6efb8cc90d9f35246527727
NFC: digital: Fix potential skb leaks in NFC-DEP code

When digital_in_send_cmd() or digital_tg_send_cmd()
fail, they do not free the skb that was passed to
them so the routine that allocated the skb should
free it.  Currently, there are several routines in
the NFC-DEP code that don't do this so make them.

Reviewed-by: Thierry Escande <thierry.escande@linux.intel.com>
Tested-by: Thierry Escande <thierry.escande@linux.intel.com>
Signed-off-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
net/nfc/digital_dep.c