]> git.baikalelectronics.ru Git - kernel.git/commit
sock: fix zerocopy_success regression with msg_zerocopy
authorWillem de Bruijn <willemb@google.com>
Wed, 9 Aug 2017 23:09:44 +0000 (19:09 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Aug 2017 23:49:17 +0000 (16:49 -0700)
commitb711e82a14abfa1a7f1d75521dbe0db204ae74ab
tree49f558c2efc24570bee03923b0f8c91d9fc4609f
parent8b6b8696463ca85adf2b798f6ab9417e31678e0c
sock: fix zerocopy_success regression with msg_zerocopy

Do not use uarg->zerocopy outside msg_zerocopy. In other paths the
field is not explicitly initialized and aliases another field.

Those paths have only one reference so do not need this intermediate
variable. Call uarg->callback directly.

Fixes: 32dcb8236cb6 ("sock: enable MSG_ZEROCOPY")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h