summaryrefslogtreecommitdiffstats
path: root/crypto/crc32c_generic.c
diff options
context:
space:
mode:
authorAvihai Horon <avihaih@nvidia.com>2020-12-08 08:35:45 +0100
committerJason Gunthorpe <jgg@nvidia.com>2020-12-10 20:05:17 +0100
commite0da68994d16b46384cce7b86eb645f1ef7c51ef (patch)
tree61b83226a6cd58dbd15168587af75e7460362faa /crypto/crc32c_generic.c
parentRDMA/core: Do not indicate device ready when device enablement fails (diff)
downloadlinux-e0da68994d16b46384cce7b86eb645f1ef7c51ef.tar.xz
linux-e0da68994d16b46384cce7b86eb645f1ef7c51ef.zip
RDMA/uverbs: Fix incorrect variable type
Fix incorrect type of max_entries in UVERBS_METHOD_QUERY_GID_TABLE - max_entries is of type size_t although it can take negative values. The following static check revealed it: drivers/infiniband/core/uverbs_std_types_device.c:338 ib_uverbs_handler_UVERBS_METHOD_QUERY_GID_TABLE() warn: 'max_entries' unsigned <= 0 Fixes: 9f85cbe50aa0 ("RDMA/uverbs: Expose the new GID query API to user space") Link: https://lore.kernel.org/r/20201208073545.9723-4-leon@kernel.org Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Avihai Horon <avihaih@nvidia.com> Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'crypto/crc32c_generic.c')
0 files changed, 0 insertions, 0 deletions