]> git.baikalelectronics.ru Git - kernel.git/commit
net: caif: use skb helpers instead of open-coding them
authorJann Horn <jannh@google.com>
Thu, 14 Feb 2019 21:35:47 +0000 (22:35 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Feb 2019 19:01:17 +0000 (11:01 -0800)
commitfec2b2bcb0972d95274c23af1648bc2abc79c154
tree7e3fa360da5809be081b1e454461204514e7d355
parentf01f5bdbdb6d6b99e05702e149b5723e73ffb5d5
net: caif: use skb helpers instead of open-coding them

Use existing skb_put_data() and skb_trim() instead of open-coding them,
with the skb_put_data() first so that logically, `skb` still contains the
data to be copied in its data..tail area when skb_put_data() reads it.
This change on its own is a cleanup, and it is also necessary for potential
future integration of skbuffs with things like KASAN.

Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfpkt_skbuff.c