commit | 8d0d2b0f41b1b2add8a30dbd816051a964efa497 | [log] [tgz] |
---|---|---|
author | Håkon Bugge <haakon.bugge@oracle.com> | Tue Nov 23 11:06:18 2021 +0100 |
committer | Jason Gunthorpe <jgg@nvidia.com> | Thu Nov 25 13:32:12 2021 -0400 |
tree | 9643dda050e6b362d68c549cceeb30fa53702b21 | |
parent | 223b4d5c8702a92fb18d14e3f32953e474313e5b [diff] |
RDMA/cma: Remove open coding of overflow checking for private_data_len The existing tests are a little hard to comprehend. Use check_add_overflow() instead. Fixes: 04ded1672402 ("RDMA/cma: Verify private data length") Link: https://lore.kernel.org/r/1637661978-18770-1-git-send-email-haakon.bugge@oracle.com Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>