summaryrefslogtreecommitdiffstats
path: root/drivers/s390/net/qeth_core_mpc.h
diff options
context:
space:
mode:
authorJulian Wiedmann2018-11-02 19:04:12 +0100
committerDavid S. Miller2018-11-03 18:44:06 +0100
commit125d7d30111738a5bdafacc1ed87cd3d7f32b4ea (patch)
tree77cb37aa0f0ffe856760711a8f1a758d4473fb5c /drivers/s390/net/qeth_core_mpc.h
parents390/qeth: fix initial operstate (diff)
downloadkernel-qcow2-linux-125d7d30111738a5bdafacc1ed87cd3d7f32b4ea.tar.gz
kernel-qcow2-linux-125d7d30111738a5bdafacc1ed87cd3d7f32b4ea.tar.xz
kernel-qcow2-linux-125d7d30111738a5bdafacc1ed87cd3d7f32b4ea.zip
s390/qeth: sanitize ARP requests
The ARP_{ADD,REMOVE}_ENTRY cmd structs contain reserved fields. Introduce a common helper that doesn't raw-copy the user-provided data into the cmd, but only sets those fields that are strictly needed for the command. This also sets the correct command length for ARP_REMOVE_ENTRY. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core_mpc.h')
-rw-r--r--drivers/s390/net/qeth_core_mpc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_mpc.h b/drivers/s390/net/qeth_core_mpc.h
index e85090467afe..80c036acf563 100644
--- a/drivers/s390/net/qeth_core_mpc.h
+++ b/drivers/s390/net/qeth_core_mpc.h
@@ -436,7 +436,7 @@ struct qeth_ipacmd_setassparms {
__u32 flags_32bit;
struct qeth_ipa_caps caps;
struct qeth_checksum_cmd chksum;
- struct qeth_arp_cache_entry add_arp_entry;
+ struct qeth_arp_cache_entry arp_entry;
struct qeth_arp_query_data query_arp;
struct qeth_tso_start_data tso;
__u8 ip[16];