summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2017-12-21 01:37:50 +0300
committerDavid S. Miller <davem@davemloft.net>2017-12-21 23:00:58 +0300
commitb90ddd568792bcb0054eaf0f61785c8f80c3bd1c (patch)
tree15019f6f3ff507c87e3b3d6455a6993489e0d49e /net/unix/af_unix.c
parent268b790679422a89e9ab0685d9f291edae780c98 (diff)
downloadlinux-b90ddd568792bcb0054eaf0f61785c8f80c3bd1c.tar.xz
skbuff: skb_copy_ubufs must release uarg even without user frags
skb_copy_ubufs creates a private copy of frags[] to release its hold on user frags, then calls uarg->callback to notify the owner. Call uarg->callback even when no frags exist. This edge case can happen when zerocopy_sg_from_iter finds enough room in skb_headlen to copy all the data. Fixes: 3ece782693c4 ("sock: skb_copy_ubufs support for compound pages") Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions