]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipoib: Prevent setting negative values to max_nonsrq_conn_qp
authorAlex Vesker <valex@mellanox.com>
Thu, 13 Jul 2017 08:27:12 +0000 (11:27 +0300)
committerLeon Romanovsky <leon@kernel.org>
Sun, 23 Jul 2017 06:45:11 +0000 (09:45 +0300)
commit8d7ff2c17ff1b41be649fe4d6bfbd6cf32649409
treea2e92b8a700c7a02920e32577f1a31199bea2aba
parentb4ccbca406af9749a49238ae83e6cbfbff39541c
IB/ipoib: Prevent setting negative values to max_nonsrq_conn_qp

Don't allow negative values to max_nonsrq_conn_qp. There is no functional
impact on a negative value but it is logicically incorrect.

Fixes: 9fd8d374c1de ("IPoIB/cm: Add connected mode support for devices without SRQs")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/ulp/ipoib/ipoib_main.c