habanalabs: fix bug when setting va block size
authorDafna Hirschfeld <dhirschfeld@habana.ai>
Mon, 8 Aug 2022 11:03:44 +0000 (14:03 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Sun, 18 Sep 2022 10:29:52 +0000 (13:29 +0300)
commit75bc3986fc768912715d4898d5f4aac3fadbc155
tree797a78e296cde3e998366a67553497547d423c58
parent38a4358009456bfd7e4893c4f98ee401efce26eb
habanalabs: fix bug when setting va block size

the size of a block is always 'block->end - block->start + 1'

Signed-off-by: Dafna Hirschfeld <dhirschfeld@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/memory.c