]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
RDMA/uverbs: Use uverbs_request() for request copying
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:38 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 17:01:58 +0000 (12:01 -0500)
commit3c2c20947ddbb897a1459f149509ac03e35043e1
treea0d8920ecde9889831404fbe39653822c3419325
parent9a0738575f2691d3a417fb5f83b6dcdaf0dcc36e
RDMA/uverbs: Use uverbs_request() for request copying

This function properly zero-extends, and zero-checks if the user
buffer is not the same size as the kernel command struct.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c