From e9b5743885065ef50f74ec6a0b76693f3073ad26 Mon Sep 17 00:00:00 2001 From: Alex Vesker Date: Thu, 13 Jul 2017 11:27:12 +0300 Subject: [PATCH] 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-format-patch failed