forked from Minki/linux
habanalabs: remove node from list before freeing the node
fix the following smatch warnings: goya_pin_memory_before_cs() warn: '&userptr->job_node' not removed from list gaudi_pin_memory_before_cs() warn: '&userptr->job_node' not removed from list Signed-off-by: Koby Elbaz <kelbaz@habana.ai> Reviewed-by: Oded Gabbay <ogabbay@kernel.org> Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
11d5cb8b95
commit
f5eb7bf0c4
@ -5046,6 +5046,7 @@ already_pinned:
|
||||
return 0;
|
||||
|
||||
unpin_memory:
|
||||
list_del(&userptr->job_node);
|
||||
hl_unpin_host_memory(hdev, userptr);
|
||||
free_userptr:
|
||||
kfree(userptr);
|
||||
|
@ -3326,6 +3326,7 @@ already_pinned:
|
||||
return 0;
|
||||
|
||||
unpin_memory:
|
||||
list_del(&userptr->job_node);
|
||||
hl_unpin_host_memory(hdev, userptr);
|
||||
free_userptr:
|
||||
kfree(userptr);
|
||||
|
Loading…
Reference in New Issue
Block a user