commit | ca42fb9e52d155547e6cf18cf26bce3e1a6af4ea | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Mar 08 08:22:37 2017 +0300 |
committer | Samuel Ortiz <sameo@linux.intel.com> | Sun Apr 02 00:09:17 2017 +0200 |
tree | 508c0c1d009f20621dad80a6c08f60ca4909b3b4 | |
parent | 52fdede5c9b96de355ab5e45e35503b9da6b86f6 [diff] |
NFC: nfcmrvl: double free on error path The nci_spi_send() function calls kfree_skb(skb) on both error and success so this extra kfree_skb() is a double free. Fixes: caf6e49bf6d0 ("NFC: nfcmrvl: add spi driver") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>