Ofir Bitton 7a55cf8a20 habanalabs: check correct vmalloc return code
[ Upstream commit 0839152f8c1efc1cc2d515d1ff1e253ca9402ad3 ]

vmalloc can return different return code than NULL and a valid
pointer. We must validate it in order to dereference a non valid
pointer.

Signed-off-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-09 19:12:21 +02:00
..
2020-08-19 08:16:08 +02:00
2020-07-22 09:33:13 +02:00
2019-09-18 11:14:31 -07:00
2019-09-18 11:14:31 -07:00