Commit 23faaa58 authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Let the CAPI free the SKB in the error case

If the CAPI send_message() function returns with anything else than
CAPI_NOERROR then there is no need to free the SKB. The CAPI will take
care of it by itself.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 556e841e
......@@ -493,7 +493,6 @@ static u16 cmtp_send_message(struct capi_ctr *ctrl, struct sk_buff *skb)
application = cmtp_application_get(session, CMTP_APPLID, appl);
if ((!application) || (application->state != BT_CONNECTED)) {
BT_ERR("Can't find application with id %d", appl);
kfree_skb(skb);
return CAPI_ILLAPPNR;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment