> posix_memalign() returns zero or a positive error number and does not set > errno. virtio_test and vhost_net_test assert that the return is not > negative, which will always be true, and the userspace __get_free_page() > ignores it, so a failed allocation continues without setting the pointer > > Assert a zero return in the tests, and return 0 from __get_free_page() on > failure, as the kernel's does. > > Signed-off-by: Liam R. Howlett (Google) <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=2
