Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1944167ybv; Fri, 14 Feb 2020 08:38:32 -0800 (PST) X-Google-Smtp-Source: APXvYqz9JvCiKNbjwMJHAjVvrH95MD0dxjyfIOGLQ5B1QLhlSQMO5eYPcZvl4Uhf/nO7u0AeYBT5 X-Received: by 2002:a9d:7559:: with SMTP id b25mr2897771otl.189.1581698312107; Fri, 14 Feb 2020 08:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698312; cv=none; d=google.com; s=arc-20160816; b=SmJzDiMUY+SiQlrrzNe+QVm1ZmUxfNYfqMTruVhMn9yS1G2YLQDOHd6p8kBNDI30fW WhCU7WNubRI+uGMaw50s3ORA/KamyevTXA/a1ESs1B3T8xIurI9sIuVwl5vjAEjiqqKM RcSPiutptZKzKfLf8snXZtJq+hzsAUR1Qcsr3yJS04p6WDIActABT09NFvqjOShWnaxc LmMuEOvrSvJKR1VcVwVfbAZz82HF5Ty7uAAVMbXoq8jtoyjcnWTVZ1qfiPp3X2wsal01 s/7251GRI8ZV8/PB2mFobjaXHQSkd6H8Hk3GxQMlODZqqvbTAhombOGTrjSJS6GmUq8H 7+YQ== 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=bC6NgE0YHKj3BusJvNxCi9isKoZf8odFNveCqdWYfTg=; b=ai6Ikos5Uq/WxCNUIwMOMMlRdOOHlJolS5YumBMGbIQ74mn66+wExrvSpSy/q9nO+W +Ps1wkPfnWsckD7J2G392aHfoyEJC2PuU6pEHVhb5/mAOqC0oIRapi8lCax3pJnI2krP bXQSJ0rocCIr0Pb8gt9QrvIUFPb+AYi7lBAkulyZ4cMjyqZEXaG8oRDwN/VgMjgJ/kHV iPVVG/dppbX0qpyyrI1+5kCAnoE1c4se2u5eJ4un85SJ+6Wbt+2XbhRVs5uW/4R67Acy WDrlZ5v4PPFiI+LJQ1eu9yPgG1LnVG314baWmuGXEn4NZo2X9XiBw3Yiq+SRCAPv1P3c DLiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vNqlZqRj; 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 w17si3255528oti.75.2020.02.14.08.38.20; Fri, 14 Feb 2020 08:38:32 -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=vNqlZqRj; 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 S2393731AbgBNQgs (ORCPT + 99 others); Fri, 14 Feb 2020 11:36:48 -0500 Received: from mail.kernel.org ([198.145.29.99]:60830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405481AbgBNQYJ (ORCPT ); Fri, 14 Feb 2020 11:24:09 -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 6CDCD24793; Fri, 14 Feb 2020 16:24:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697449; bh=ZuyCav726QAW4wkyACC8DfsuCQ/gIOxRELipMzd9PM8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vNqlZqRjE4bO7KvUM+Uh6uvk80I/WhveHQDmubRN/xJke2OVKM9iLqRzaUCJGNHry h/XvHDPDLpZKpr7azmB+coqjTmMGb+eeyhtsAV8/5vYDUbj1VeM2bxowkf4VkOR2oL ulQ4Hg67G6zgjUP7tt2hT2ycXorRKcB/1fnxwfU8= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Nathan Chancellor , Andrew Morton , Linus Torvalds , Sasha Levin , clang-built-linux@googlegroups.com Subject: [PATCH AUTOSEL 4.9 133/141] lib/scatterlist.c: adjust indentation in __sg_alloc_table Date: Fri, 14 Feb 2020 11:21:13 -0500 Message-Id: <20200214162122.19794-133-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-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: Nathan Chancellor [ Upstream commit 4e456fee215677584cafa7f67298a76917e89c64 ] Clang warns: ../lib/scatterlist.c:314:5: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation] return -ENOMEM; ^ ../lib/scatterlist.c:311:4: note: previous statement is here if (prv) ^ 1 warning generated. This warning occurs because there is a space before the tab on this line. Remove it so that the indentation is consistent with the Linux kernel coding style and clang no longer warns. Link: http://lkml.kernel.org/r/20191218033606.11942-1-natechancellor@gmail.com Link: https://github.com/ClangBuiltLinux/linux/issues/830 Fixes: edce6820a9fd ("scatterlist: prevent invalid free when alloc fails") Signed-off-by: Nathan Chancellor Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds Signed-off-by: Sasha Levin --- lib/scatterlist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scatterlist.c b/lib/scatterlist.c index a854cc39f084f..ef8c14a56d0a7 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c @@ -317,7 +317,7 @@ int __sg_alloc_table(struct sg_table *table, unsigned int nents, if (prv) table->nents = ++table->orig_nents; - return -ENOMEM; + return -ENOMEM; } sg_init_table(sg, alloc_size); -- 2.20.1