Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2489937pxj; Mon, 10 May 2021 04:21:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1zcwnT8qy2bpEl+pexsPwSUMTh66MYMmG4Nd7yekH7A5cTrWQMuBkLc1oORxbcONmE+5r X-Received: by 2002:a05:6e02:eac:: with SMTP id u12mr21428193ilj.177.1620645677003; Mon, 10 May 2021 04:21:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620645676; cv=none; d=google.com; s=arc-20160816; b=sTDL4ASydfW4RR9YMShr8CtfCye16j0O+be7Xl5tYdWN1bB54HuTzhzK6MsYjUP+qk iHa5o/zHoIPfXzM82HUR0B3cij6YbZugNFd5BTnD2c61JrKdTBPZzOwqOqgEjseh53KC n6uyDndhkhNu8VM2VoSO1P00Hbm3Y5OVAAo9SRq6yBoVBhAJbggrY2+ahTMTHpDBgAvo 7zL6om+Tyl1cF3JnWvfNfVJAZtrj0Z+8fGxRZFimE5nnAYy0wFkpkAoFIP/mbiezADrv RcxjiRe490Z1FYXi1HbINTE31OipJszzKDjzbKR+Z6wNP0iOX1ilnX+CC2jrY9X8kVwG BOtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=CsPojm5dYIYe9SaXyGFnLbFHrDnjGwYSx64sDKL4f9w=; b=gm4tIwLllBCi2th/Vkr2LKCBZ8nbUYqfVHQQq60owoyykUpFjzXKse6+Kji7KM1ku8 0EHkaMg0gBJmD1ei0JaE2/xa31hQIo+Kou82eW3ySOFXcbzQ8DnwghnJ5T9q6Rxp3uF5 IzLe6DOrQWnsuklcqOt8ix2ATUoE7RpXOjJC46lgZ7OCIyB+W99vvD2xtmR5uSqlkRn9 8HbUBd2da65i3Qmx6KVhkw47q/KqwFKNxnBSHTGlz8ECHel4cXJNN8YdH0kHMTVDqvqw MyW/BQslyGgdOc815OFpdFY08CXxHuSl/f1s0ASrau44acMSLOHZL0IPP+RpFqvTqyob u/RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PvC6O1/V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s11si15061419jaj.108.2021.05.10.04.21.04; Mon, 10 May 2021 04:21:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="PvC6O1/V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233927AbhEJLTI (ORCPT + 99 others); Mon, 10 May 2021 07:19:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:45210 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233986AbhEJKzl (ORCPT ); Mon, 10 May 2021 06:55:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id CD87861C30; Mon, 10 May 2021 10:43:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620643389; bh=IPKWq9sT5e08ugTSlgBDGvzhnCFNfvWl1pQt54L2Tf0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PvC6O1/VdnDAUBD73p2qdfpuy681m/m0GtrpnLZfnJcNmukJ7VjUOLeT0u0mEvmmJ 9r3C+9dzReK7JsTyrHhchnU+6aJJmsAUaiApo3NWYyg6xEc+ouvfASE3muKXr6R2AS xL8Mpqo6NFoHbug8ypmJoCI5EJakL9gC9yaBTqLU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tian Tao , Mike Snitzer Subject: [PATCH 5.10 295/299] dm integrity: fix missing goto in bitmap_flush_interval error handling Date: Mon, 10 May 2021 12:21:32 +0200 Message-Id: <20210510102014.674628097@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210510102004.821838356@linuxfoundation.org> References: <20210510102004.821838356@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tian Tao commit 17e9e134a8efabbbf689a0904eee92bb5a868172 upstream. Fixes: 468dfca38b1a ("dm integrity: add a bitmap mode") Cc: stable@vger.kernel.org Signed-off-by: Tian Tao Signed-off-by: Mike Snitzer Signed-off-by: Greg Kroah-Hartman --- drivers/md/dm-integrity.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/md/dm-integrity.c +++ b/drivers/md/dm-integrity.c @@ -3929,6 +3929,7 @@ static int dm_integrity_ctr(struct dm_ta if (val >= (uint64_t)UINT_MAX * 1000 / HZ) { r = -EINVAL; ti->error = "Invalid bitmap_flush_interval argument"; + goto bad; } ic->bitmap_flush_interval = msecs_to_jiffies(val); } else if (!strncmp(opt_string, "internal_hash:", strlen("internal_hash:"))) {