Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4588982pja; Thu, 21 Nov 2019 22:24:12 -0800 (PST) X-Google-Smtp-Source: APXvYqz/XFgIGH77I8aCFwAP1tLwyTpeVX5pXxU8mqdxc73dda2kN8P0xpusoMwIrsVUeYOMW86n X-Received: by 2002:a17:906:938c:: with SMTP id l12mr19585943ejx.135.1574403852763; Thu, 21 Nov 2019 22:24:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574403852; cv=none; d=google.com; s=arc-20160816; b=cV1AinNqwbV/XWFI4tRkZ1oPXo8/VqlABkz+9MKbuQ7Pw5rPhj5VF7nwipV2AQtzP0 FJzcmNNXvyGPj6sLNL++xuy0PM5uTF7DoHDu0RjJLcYSXZTuLcOZUZPUYy5BAywvU8ph bHZmuIgmUIlSQ7aoA4Fsq7+K2Cb0+Fi5iKiXVF4AO/j5l7g75nOTcY0TRGqNjPDoDJpa LzkxceD9YYhf0rv6nkH27ojYV5uy9Tx6YFVLqBSK7qQptjDm/Ll+8lQmfobDjjSijiij oLFZjEXPAnoBHFKQ92i47G5vq/+Q+2lRxCNylp6evRBtKCzm8YS0egcrrT2NqO2Nubjt +I9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8fYwkA9/7jgQ1K9WxpA24R2d8RuaUrmuHlbd0tGmHOk=; b=VAxri90Qx3zyWJseRJcjlFy/msZuPrmOgTplnRs+JN8Gd6szCLHf/Za0i6B1DqyT/S vczudwzeRXR/ngDIYxNsCJ0jf6JUn8QyiJVqZJHyQ8Nh4U36bC5t02VPhcwnJUOahvsX mfnvvpoA5SA2lzeAlo8L1cqtq2WmDY4iWrvDhC6fbcAMTJGwYZhv6I0walOq9MD9ENaN KmtRcChz7lD6LF1VQExeaGQ66Nlkr+1vHINpTU/kuvHSv2xxOxS85ncnSpZik/4gQH4j cIZf20ri3N+3vN0v9MytaWdM+u1zct/2eAHAPf1f7pKI+y1yZYNkylKwPUpiNFT+/wPf 7G+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WkVuvFNM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l20si3401725ejx.389.2019.11.21.22.23.48; Thu, 21 Nov 2019 22:24:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WkVuvFNM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727952AbfKVGVg (ORCPT + 99 others); Fri, 22 Nov 2019 01:21:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:57818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728425AbfKVFwP (ORCPT ); Fri, 22 Nov 2019 00:52:15 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F185320721; Fri, 22 Nov 2019 05:52:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401934; bh=aSTWXn1mXOhWQyL0OsDJGPKyYnCAWp191htXRIztyUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WkVuvFNMf0PHy5ioMXucrM4EgCzpOfSXH32iDLVPclun7ixOzg6Q8ysA/xFycXTSB 5H65I4hc4Meobuh9G5nLtoeswZl06YMQB1tCS8xyJml0xn4kz6iIX9ElJkWOWHmqOJ 9fqE4421XvmHqFhEJ6tdPQOxANWC0tzR8t1/pouM= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Aditya Pakki , Devesh Sharma , Jason Gunthorpe , Sasha Levin , linux-rdma@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 160/219] infiniband: bnxt_re: qplib: Check the return value of send_message Date: Fri, 22 Nov 2019 00:48:12 -0500 Message-Id: <20191122054911.1750-153-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aditya Pakki [ Upstream commit 94edd87a1c59f3efa6fdf4e98d6d492e6cec6173 ] In bnxt_qplib_map_tc2cos(), bnxt_qplib_rcfw_send_message() can return an error value but it is lost. Propagate this error to the callers. Signed-off-by: Aditya Pakki Acked-By: Devesh Sharma Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/qplib_sp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/infiniband/hw/bnxt_re/qplib_sp.c b/drivers/infiniband/hw/bnxt_re/qplib_sp.c index 4097f3fa25c5f..09e7d3dd30553 100644 --- a/drivers/infiniband/hw/bnxt_re/qplib_sp.c +++ b/drivers/infiniband/hw/bnxt_re/qplib_sp.c @@ -775,9 +775,8 @@ int bnxt_qplib_map_tc2cos(struct bnxt_qplib_res *res, u16 *cids) req.cos0 = cpu_to_le16(cids[0]); req.cos1 = cpu_to_le16(cids[1]); - bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, NULL, - 0); - return 0; + return bnxt_qplib_rcfw_send_message(rcfw, (void *)&req, (void *)&resp, + NULL, 0); } int bnxt_qplib_get_roce_stats(struct bnxt_qplib_rcfw *rcfw, -- 2.20.1