habanalabs: check correct vmalloc return code
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: NOfir Bitton <obitton@habana.ai> Signed-off-by: NOded Gabbay <oded.gabbay@gmail.com>
Showing
想要评论请 注册 或 登录