From: Alex Vesker Date: Thu, 13 Jul 2017 08:27:12 +0000 (+0300) Subject: IB/ipoib: Prevent setting negative values to max_nonsrq_conn_qp X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9b5743885065ef50f74ec6a0b76693f3073ad26;p=pandora-kernel.git IB/ipoib: Prevent setting negative values to max_nonsrq_conn_qp commit 11f74b40359b19f760964e71d04882a6caf530cc upstream. 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: 68e995a29572 ("IPoIB/cm: Add connected mode support for devices without SRQs") Signed-off-by: Alex Vesker Signed-off-by: Leon Romanovsky Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed