diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2018-11-02 19:04:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-03 10:44:06 -0700 |
commit | 125d7d30111738a5bdafacc1ed87cd3d7f32b4ea (patch) | |
tree | 77cb37aa0f0ffe856760711a8f1a758d4473fb5c /drivers/s390/net/qeth_core.h | |
parent | s390/qeth: fix initial operstate (diff) | |
download | linux-dev-125d7d30111738a5bdafacc1ed87cd3d7f32b4ea.tar.xz linux-dev-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.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index 90cb213b0d55..04e294d1d16d 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -1046,11 +1046,6 @@ int qeth_configure_cq(struct qeth_card *, enum qeth_cq); int qeth_hw_trap(struct qeth_card *, enum qeth_diags_trap_action); void qeth_trace_features(struct qeth_card *); void qeth_close_dev(struct qeth_card *); -int qeth_send_setassparms(struct qeth_card *, struct qeth_cmd_buffer *, __u16, - long, - int (*reply_cb)(struct qeth_card *, - struct qeth_reply *, unsigned long), - void *); int qeth_setassparms_cb(struct qeth_card *, struct qeth_reply *, unsigned long); struct qeth_cmd_buffer *qeth_get_setassparms_cmd(struct qeth_card *, enum qeth_ipa_funcs, |