diff options
author | Thorsten Blum <thorsten.blum@toblux.com> | 2024-08-21 01:10:28 +0200 |
---|---|---|
committer | Lukas Wunner <lukas@wunner.de> | 2025-08-16 12:45:08 +0200 |
commit | a44458dfd5bc0c79c6739c3f4c658361d3a5126b (patch) | |
tree | b7b6bac6905b0f2248b89d7ba861213e19830017 /rust/kernel/security.rs | |
parent | 39ca24675b7e351b8e681d924f417e455d4a7fc1 (diff) |
accel/habanalabs/gaudi2: Use kvfree() for memory allocated with kvcalloc()
Use kvfree() to fix the following Coccinelle/coccicheck warning reported
by kfree_mismatch.cocci:
WARNING kvmalloc is used to allocate this memory at line 10398
Fixes: f728c17fc97a ("accel/habanalabs/gaudi2: move HMMU page tables to device memory")
Reported-by: Qianfeng Rong <rongqianfeng@vivo.com>
Closes: https://patch.msgid.link/20250808085530.233737-1-rongqianfeng@vivo.com
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
[lukas: acknowledge Qianfeng, adjust Thorsten's domain, add Fixes tag]
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Reviewed-by: Tomer Tayar <ttayar@habana.ai>
Cc: stable@vger.kernel.org # v6.9+
Link: https://patch.msgid.link/20240820231028.136126-1-thorsten.blum@toblux.com
Diffstat (limited to 'rust/kernel/security.rs')
0 files changed, 0 insertions, 0 deletions