From: Dan Carpenter Date: Tue, 12 Aug 2014 23:20:04 +0000 (-0400) Subject: RDMA/amso1100: Check for integer overflow in c2_alloc_cq_buf() X-Git-Tag: omap-for-v3.17/fixes-against-rc2~62^2^7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=859976da0307618d1169616f9cb03936716106eb;p=pandora-kernel.git 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 Signed-off-by: Doug Ledford Signed-off-by: Roland Dreier --- Reading git-diff-tree failed