Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp259931imu; Thu, 8 Nov 2018 01:11:24 -0800 (PST) X-Google-Smtp-Source: AJdET5cd+LzO4hNsH1QXVySXatDteTF3AIDU5V2bP+BLA4IfMRgnnJMdtjIjot4KCSctE4T0W9LM X-Received: by 2002:a62:c60a:: with SMTP id m10-v6mr3813468pfg.15.1541668284010; Thu, 08 Nov 2018 01:11:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541668283; cv=none; d=google.com; s=arc-20160816; b=V9xrslWKdUWEuitBmqxdqUa1LWns1O2CTlWwgxoTOe63NmeWWtves+ILgzrTMMLmyc LdXlMOlfQFV8WvYtTXnzMpEqtEily6AwO6GmqOBPdw9C67KvVqNJ5mWg/kT8nNWPFxek 4/CuCPAioI0WF7S0AWwub3AC3H+hmkaZAvCXLVZ4LT1RkUPJ4X+E1OCLjZkVJ/0VU3ed YhvFhtc/ASDoxh0Or0GFci647qGm9YU6Co2lgwtiSFf+f0CEX3mnJWGBmVFarAiU7JsH FEX4pnPK0Id+9fp4mkYZDvx7rRhnjmj+gDig9B+G4m/dxWzKhlrVYBRrUNO96TtFAqyK Bpag== 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:subject:cc:to:from:date; bh=J+d5Yx2DhDJCgjxnym0heB/0G/0A6Q1yXI8BImCDZnQ=; b=c5HvhI92U0D3j8vfZ8uEVteTozfeX6Ce9verIJVc2as9r4E6FoIBVxoiBUNfLMHgcd X2jBn0wWOMSgPwK7mhevQTszW2tnFtL+7cKpRn4EFaVNl8dZy0WLFkjezxmnY/PIK3Sj MOL5k3lH1cXiiRoGYPgujfJXMGy0TgGbvsnDJ3+LBfd/G/6D5jiqTl+1AlunjtyEDXnr h4CrVhLENe0fnwG6DAJnlfnC7A2w9KR9RrtSMtvJNVyBkTPUbb6klFaRHm9GpHBd/Jpm 8C4BE2gu0uRt7E06RuWFAy9rwEofosPGKwlGUyd/Rk52Sy25z1vnzDp7PgAKyg9c5JLi 7qvA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14-v6si3749341pfw.217.2018.11.08.01.11.06; Thu, 08 Nov 2018 01:11:23 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726926AbeKHSn5 (ORCPT + 99 others); Thu, 8 Nov 2018 13:43:57 -0500 Received: from mail.bootlin.com ([62.4.15.54]:59066 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726831AbeKHSn5 (ORCPT ); Thu, 8 Nov 2018 13:43:57 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 6675520787; Thu, 8 Nov 2018 10:09:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (aaubervilliers-681-1-30-49.w90-88.abo.wanadoo.fr [90.88.15.49]) by mail.bootlin.com (Postfix) with ESMTPSA id 401D72039F; Thu, 8 Nov 2018 10:09:24 +0100 (CET) Date: Thu, 8 Nov 2018 10:09:24 +0100 From: Boris Brezillon To: Colin King Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][i3c-next] i3c: fix incorrect update to max_read_ds Message-ID: <20181108100924.2381e9f0@bbrezillon> In-Reply-To: <20181107204208.7411-1-colin.king@canonical.com> References: <20181107204208.7411-1-colin.king@canonical.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Nov 2018 20:42:08 +0000 Hi Colin, Colin King wrote: > From: Colin Ian King > > Currently max_read_ds is being updated twice, which is incorrect. > The second assignment should be to max_write_ds instead. Fix this. > > Detected by CoverityScan, CID#1475379 ("Unused value") > > Fixes: 50cacdabeae1 ("i3c: Add core I3C infrastructure") > Signed-off-by: Colin Ian King > --- > drivers/i3c/master.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i3c/master.c b/drivers/i3c/master.c > index 68d6553dbd75..0ea7bb045fad 100644 > --- a/drivers/i3c/master.c > +++ b/drivers/i3c/master.c > @@ -1093,7 +1093,7 @@ static int i3c_master_getmxds_locked(struct i3c_master_controller *master, > } > > info->max_read_ds = getmaxds->maxrd; > - info->max_read_ds = getmaxds->maxwr; > + info->max_write_ds = getmaxds->maxwr; Thanks for the fix. Since the I3C driver is not merged yet, would you mind if I squash your changes in the commit introducing the bug? Regards, Boris