Skip to content

Commit

Permalink
NFC: st21nfca: Fix potential double kfree_skb error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christophe Ricard authored and Samuel Ortiz committed Sep 24, 2014
1 parent 459e794 commit 094e935
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/nfc/st21nfca/st21nfca_dep.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 094e935

Please sign in to comment.