aboutsummaryrefslogtreecommitdiff
path: root/drivers/base/firmware_loader/main.c
diff options
context:
space:
mode:
authorYuri Nudelman <[email protected]>2022-05-15 13:46:37 +0300
committerGreg Kroah-Hartman <[email protected]>2022-05-22 21:01:21 +0200
commitf873a27fd50d161111d0e52087af0f5b2111c5c4 (patch)
treef3f8a4e7de88e607304501b815734a047493062e /drivers/base/firmware_loader/main.c
parente31dd9362f01682192d80221cc4339e4f7140f30 (diff)
habanalabs: fix missing handle shift during mmap
During mmap operation on the unified memory manager buffer, the vma page offset is shifted to extract the handle value. Due to a typo, it was not shifted back at the end. That could cause the offset to be modified after mmap operation, that may affect subsequent operations. In addition, in allocation flow, in case of out of memory error, idr would not be correctly destroyed, again because of a missing shift. Signed-off-by: Yuri Nudelman <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/base/firmware_loader/main.c')
0 files changed, 0 insertions, 0 deletions