mirror of https://gitee.com/openkylin/linux.git
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: Christophe Ricard <christophe-h.ricard@st.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
459e794b9b
commit
094e935924
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue