NFC: st21nfca: Fix potential double kfree_skb error
authorChristophe Ricard <christophe.ricard@gmail.com>
Sat, 13 Sep 2014 08:28:53 +0000 (10:28 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 24 Sep 2014 00:02:24 +0000 (02:02 +0200)
skb is already freed in st21nfca_tx_work and was freed also in
st21nfca_im_send_psl_req.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/nfc/st21nfca/st21nfca_dep.c

index 9408122fb948e44c50f4015a7f0dc2a05d8467a2..bfb6df56c5058d36d007c0753a8aa31e25e4f9ce 100644 (file)
@@ -428,8 +428,6 @@ static void st21nfca_im_send_psl_req(struct nfc_hci_dev *hdev, u8 did, u8 bsi,
        *skb_push(skb, 1) = info->dep_info.to | 0x10;
 
        st21nfca_im_send_pdu(info, skb);
-
-       kfree_skb(skb);
 }
 
 #define ST21NFCA_CB_TYPE_READER_F 1