Re: [PATCH v2] net: qrtr: Expose tunneling endpoint to user space
From: David Miller
Date: Fri Apr 27 2018 - 10:55:25 EST
From: Bjorn Andersson <bjorn.andersson@xxxxxxxxxx>
Date: Mon, 23 Apr 2018 14:46:53 -0700
> + count = min_t(size_t, iov_iter_count(to), skb->len);
> + if (copy_to_iter(skb->data, count, to) != count)
> + count = -EFAULT;
> +
> + kfree_skb(skb);
As noted by Chris, you should be using consume_skb() here.
Thanks.