linux/drivers/nvme
Israel Rukshin 19478fd933 nvme-auth: use kvfree() for memory allocated with kvcalloc()
[ Upstream commit bb9f4cca7c ]

Memory allocated by kvcalloc() may come from vmalloc or kmalloc,
so use kvfree() instead of kfree() for proper deallocation.

Fixes: aa36d711e9 ("nvme-auth: convert dhchap_auth_list to an array")
Signed-off-by: Israel Rukshin <israelr@nvidia.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-12-18 13:55:19 +01:00
..
common move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
host nvme-auth: use kvfree() for memory allocated with kvcalloc() 2025-12-18 13:55:19 +01:00
target nvmet-fc: avoid scheduling association deletion twice 2025-11-13 15:34:06 -05:00
Kconfig nvme: implement In-Band authentication 2022-08-02 17:14:49 -06:00
Makefile nvme: common: make keyring and auth separate modules 2023-11-07 10:05:15 -08:00