Commit 86e7a4e4 authored by Julian Wiedmann's avatar Julian Wiedmann Committed by David S. Miller

s390/qeth: add phys_to_virt() translation for AOB

Data addresses in the AOB are absolute, and need to be translated before
being fed into kmem_cache_free(). Currently this phys_to_virt() is a no-op.
Also see commit 2db01da8 ("s390/qdio: fill SBALEs with absolute addresses").
Signed-off-by: default avatarJulian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 54e73b9c
...@@ -538,9 +538,10 @@ static void qeth_qdio_handle_aob(struct qeth_card *card, ...@@ -538,9 +538,10 @@ static void qeth_qdio_handle_aob(struct qeth_card *card,
for (i = 0; for (i = 0;
i < aob->sb_count && i < QETH_MAX_BUFFER_ELEMENTS(card); i < aob->sb_count && i < QETH_MAX_BUFFER_ELEMENTS(card);
i++) { i++) {
if (aob->sba[i] && buffer->is_header[i]) void *data = phys_to_virt(aob->sba[i]);
kmem_cache_free(qeth_core_header_cache,
(void *) aob->sba[i]); if (data && buffer->is_header[i])
kmem_cache_free(qeth_core_header_cache, data);
} }
atomic_set(&buffer->state, QETH_QDIO_BUF_HANDLED_DELAYED); atomic_set(&buffer->state, QETH_QDIO_BUF_HANDLED_DELAYED);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment