Tag: 9d194d1025f463392feafa26ff8c2d8247f71be1

IB/nes: Return an error on ib_copy_from_udata() failure instead of NULL

Author: Yann Droneaud <ydroneaud@opteya.com> In case of error while accessing to userspace memory, function nes_create_qp() returns NULL instead of an error code wrapped through ERR_PTR(). But NULL is not expected by ib_uverbs_create_qp(), as it check for error with IS_ERR(). As page 0 is likely not mapped, it is going to trigger an Oops when the …

Continue reading