commit | 859976da0307618d1169616f9cb03936716106eb | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Aug 12 19:20:04 2014 -0400 |
committer | Roland Dreier <roland@purestorage.com> | Tue Aug 12 22:00:03 2014 -0700 |
tree | d7b5e0e805a0411553495476cd8f56482c23ba70 | |
parent | 64aa90f26c06e1cb2aacfb98a7d0eccfbd6c1a91 [diff] |
RDMA/amso1100: Check for integer overflow in c2_alloc_cq_buf() This is a static checker fix. The static checker says that q_size comes from the user and can be any 32 bit value. The call tree is: --> ib_uverbs_create_cq() --> c2_create_cq() --> c2_init_cq() Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Roland Dreier <roland@purestorage.com>