Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 094e9359 authored by Christophe Ricard's avatar Christophe Ricard Committed by Samuel Ortiz
Browse files

NFC: st21nfca: Fix potential double kfree_skb error



skb is already freed in st21nfca_tx_work and was freed also in
st21nfca_im_send_psl_req.

Signed-off-by: default avatarChristophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 459e794b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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