]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ibmvnic: Unmap DMA login rsp buffer on send login fail
authorNick Child <nnac123@linux.ibm.com>
Wed, 9 Aug 2023 22:10:35 +0000 (17:10 -0500)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Aug 2023 17:36:36 +0000 (10:36 -0700)
commit411c565b4bc63e9584a8493882bd566e35a90588
treed71630da6035d5b424c6c502f170a45d30f23e0d
parentdb17ba719bceb52f0ae4ebca0e4c17d9a3bebf05
ibmvnic: Unmap DMA login rsp buffer on send login fail

If the LOGIN CRQ fails to send then we must DMA unmap the response
buffer. Previously, if the CRQ failed then the memory was freed without
DMA unmapping.

Fixes: c98d9cc4170d ("ibmvnic: send_login should check for crq errors")
Signed-off-by: Nick Child <nnac123@linux.ibm.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20230809221038.51296-2-nnac123@linux.ibm.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/ibm/ibmvnic.c