aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/ibm/ibmvnic.c
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2020-12-07 14:12:33 +0100
committerDavid S. Miller <davem@davemloft.net>2020-12-07 06:55:21 -0800
commitd2e46004c5cdaec4befa3c1a071bb9fa7fdbbcc5 (patch)
tree3019f0d8060ed4c98306ee325767ec6f369bb031 /drivers/net/ethernet/ibm/ibmvnic.c
parents390/qeth: remove QETH_QDIO_BUF_HANDLED_DELAYED state (diff)
downloadlinux-dev-d2e46004c5cdaec4befa3c1a071bb9fa7fdbbcc5.tar.xz
linux-dev-d2e46004c5cdaec4befa3c1a071bb9fa7fdbbcc5.zip
s390/qeth: make qeth_qdio_handle_aob() more robust
When qeth_qdio_handle_aob() frees dangling allocations in the notified TX buffer, there are rare tear-down cases where qeth_drain_output_queue() would later call qeth_clear_output_buffer() for the same buffer - and thus end up walking the buffer a second time to check for dangling kmem_cache allocations. Luckily current code previously scrubs such a buffer, so qeth_clear_output_buffer() would find buf->buffer->element[i].addr as NULL and not do anything. But this is fragile, and we can easily improve it by consistently clearing the ->is_header flag after freeing the allocation. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.c')
0 files changed, 0 insertions, 0 deletions