diff options
author | Willem de Bruijn | 2017-08-10 01:09:44 +0200 |
---|---|---|
committer | David S. Miller | 2017-08-10 01:49:17 +0200 |
commit | 0a4a060bb204c47825eb4f7c27f66fc7ee85d508 (patch) | |
tree | 49f558c2efc24570bee03923b0f8c91d9fc4609f /security/tomoyo | |
parent | sock: fix zerocopy panic in mem accounting (diff) | |
download | kernel-qcow2-linux-0a4a060bb204c47825eb4f7c27f66fc7ee85d508.tar.gz kernel-qcow2-linux-0a4a060bb204c47825eb4f7c27f66fc7ee85d508.tar.xz kernel-qcow2-linux-0a4a060bb204c47825eb4f7c27f66fc7ee85d508.zip |
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: 1f8b977ab32d ("sock: enable MSG_ZEROCOPY")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'security/tomoyo')
0 files changed, 0 insertions, 0 deletions