Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3665640imm; Tue, 29 May 2018 11:10:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp70cKLD4pWfze8RtdD+niuwhYyEAmYzhowxitnczGtKvhXkt6Xcyj/oVYud/T/DjDKOhAZ X-Received: by 2002:a62:b610:: with SMTP id j16-v6mr18294101pff.17.1527617426258; Tue, 29 May 2018 11:10:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527617426; cv=none; d=google.com; s=arc-20160816; b=yoXyKhgwLmEyRanc4rylgythkTq8plrpIzM7fQEM59EgFOGGXzRpDZYf5yZYOedZzG oKZvFeGURFZx/YNBuNwQ37QAx3R8lq8IUXsLptDEI9aWdVnWD2Ybkit+l3ZW3lQOUGOO rMvKjOUXiJTAtDucQIT2Snm5UF3G4cYmx8mvv2A2Uy1Jr9dq2bNAZ+hw59wf1xq2Mtnz ZAHm21GJnm0XhGrci2O4OmyhYdvqBhg8nF3wdq1I40ELFEebyvjoG5Dv1atGrOhrOKhj G0Sg5lgrup9JHD0PYqPJUrG0613AaVkrsoKWb680G4OjX34dZ8PWMW9D6UdDP9WwXWzr rERQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=oOwHQ/quRJKh5gUz3bHiHUE0uD2WZpt37BegB+7Z1FY=; b=eNHAfR1H8j0d4Bo4bM6I2VEoKekzjBXQ8d8H76DSXIfNk0Kmfk/yDYvmjnzjzWq+Kf mbOFk0sYrniXGGJ8XGkHaRXx5RAAtaxJmxD8lkJvPi9H98KwTlUMvW5Ih6pIlJhW0Rqy GRZe4Z2Uzt/1V64qOp+QUCy2K7hRtTN02XyuaE0F3pvg770kTz+iSrT6jOMtUxbSEroZ q02Elma/V4AlB8nrW84JKUBHayt9fvcO0YyY9upLNVwiDeccVBm9iYwqglAIRQW6wvog cnLmDcAk5lGqpL79SqlvkipOcuFIJ/+HqHLL9NKluvuU6OOkDezJe1hN/ICWzCgJopMX VanQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4-v6si33068505plb.313.2018.05.29.11.10.12; Tue, 29 May 2018 11:10:26 -0700 (PDT) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966070AbeE2SJK (ORCPT + 99 others); Tue, 29 May 2018 14:09:10 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47268 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S966047AbeE2SJF (ORCPT ); Tue, 29 May 2018 14:09:05 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7D8DC7D664; Tue, 29 May 2018 18:09:04 +0000 (UTC) Received: from localhost (unknown [10.18.25.149]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5B22720244F0; Tue, 29 May 2018 18:09:04 +0000 (UTC) Date: Tue, 29 May 2018 14:09:03 -0400 From: Mike Snitzer To: Colin King Cc: Alasdair Kergon , dm-devel@redhat.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH][next] dm writecache: fix missing goto in error handling code Message-ID: <20180529180903.GB32763@redhat.com> References: <20180527222512.25280-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180527222512.25280-1-colin.king@canonical.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 29 May 2018 18:09:04 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Tue, 29 May 2018 18:09:04 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'msnitzer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 27 2018 at 6:25pm -0400, Colin King wrote: > From: Colin Ian King > > Currently, the -EFBIG error condition when n_bitmaps_bits is > too large is falling through to the next statement and the > error assignment to r is potentially being ignored. The code > should be exiting to the error path via label 'bad'. Fix > this by adding the missing goto statement. > > Detected by CoverityScan, CID#1469377 ("Unused value") > > Fixes: bb15b431d650 ("dm: add writecache target") > Signed-off-by: Colin Ian King Thanks, I've picked this up.