diff options
author | Julian Wiedmann <[email protected]> | 2019-02-12 18:33:20 +0100 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-02-12 13:14:24 -0500 |
commit | 51581fd07d8b8f5c3ff4444d6a8d2dc130d6cf57 (patch) | |
tree | bd94c965965f2ee3666644b0bace999ef9aa0787 | |
parent | 4386e34fab6c89b7b8dae4a44e3cbed5c16a1c4f (diff) |
s390/qeth: limit trace to valid data of command request
'len' specifies how much data we send to the HW, don't dump beyond this
boundary.
As of today this is no big concern - commands are built in full, zeroed
pages.
Signed-off-by: Julian Wiedmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
-rw-r--r-- | drivers/s390/net/qeth_core_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 428175e1cb5d..ae2ea0a0edce 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -1991,7 +1991,7 @@ void qeth_prepare_control_data(struct qeth_card *card, int len, card->seqno.pdu_hdr++; memcpy(QETH_PDU_HEADER_ACK_SEQ_NO(iob->data), &card->seqno.pdu_hdr_ack, QETH_SEQ_NO_LENGTH); - QETH_DBF_HEX(CTRL, 2, iob->data, QETH_DBF_CTRL_LEN); + QETH_DBF_HEX(CTRL, 2, iob->data, min(len, QETH_DBF_CTRL_LEN)); } EXPORT_SYMBOL_GPL(qeth_prepare_control_data); |