]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Add a check for uverbs_attr_get to uverbs_copy_to_struct_or_zero
authorChuhong Yuan <hslester96@gmail.com>
Fri, 18 Oct 2019 08:15:34 +0000 (16:15 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 22 Oct 2019 19:10:03 +0000 (16:10 -0300)
commit83b19a24f654c81c5b7914dc1f661d46f745ce89
treeabb5edfad7cc76c4cecb512f2485221762f06977
parenta439a08e85048453ce308fd04384f71c35ad6db4
RDMA/uverbs: Add a check for uverbs_attr_get to uverbs_copy_to_struct_or_zero

All current callers for uverbs_copy_to_struct_or_zero() already check that
the attribute exists, but it make sense to verify the result like the
other functions do.

Link: https://lore.kernel.org/r/20191018081533.8544-1-hslester96@gmail.com
Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_ioctl.c