Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions net/caif/cfctrl.c
Original file line number Diff line number Diff line change
@@ -361,11 +361,10 @@ void cfctrl_cancel_req(struct cflayer *layr, struct cflayer *adap_layer)
struct cfctrl_request_info *p, *tmp;
struct cfctrl *ctrl = container_obj(layr);
spin_lock(&ctrl->info_list_lock);
pr_warn("enter\n");

list_for_each_entry_safe(p, tmp, &ctrl->list, list) {
if (p->client_layer == adap_layer) {
pr_warn("cancel req :%d\n", p->sequence_no);
pr_debug("cancel req :%d\n", p->sequence_no);
list_del(&p->list);
kfree(p);
}

0 comments on commit 47d1ff1

Please sign in to comment.