mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-11 12:30:09 +00:00
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:cecbcddf64("qedr: Add support for QP verbs") Fixes:a7efd7773e("qedr: Add support for PD,PKEY and CQ verbs") Fixes:ac1b36e55a("qedr: Add support for user context verbs") Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> Signed-off-by: Doug Ledford <dledford@redhat.com>