RDMA/qedr: Prevent memory overrun in verbs' user responses
Wrap ib_copy_to_udata with a function that ensures that the data
being copied over to user space isn't longer than the allowed.
Fixes: 4bb8a9906b57 ("qedr: Add support for QP verbs") Fixes: fe4ac1d3ddb6 ("qedr: Add support for PD,PKEY and CQ verbs") Fixes: c1b7616bb304 ("qedr: Add support for user context verbs") Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>