IB/qib: Fix size of cc_supported_table_entries
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Mon, 23 Jul 2012 16:38:15 +0000 (16:38 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 30 Jul 2012 03:26:10 +0000 (20:26 -0700)
Commit 36a8f01cd24b ("IB/qib: Add congestion control agent
implementation") tries to store the value 1984 in a u8, which leads to
truncation.  Fix this by making the member big enough.

This bug was detected by a smatch warning.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ramkrishna Vepa <ramkrishna.vepa@intel.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>

No differences found