Message ID | 20180104143126.29339-1-sxwjean@gmail.com (mailing list archive) |
---|---|
State | Superseded, archived |
Delegated to: | Mike Snitzer |
Headers | show
Return-Path: <dm-devel-bounces@redhat.com> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B71F460329 for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 4 Jan 2018 14:55:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A89DB2844C for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 4 Jan 2018 14:55:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D6D1286E4; Thu, 4 Jan 2018 14:55:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4EB892844C for <patchwork-dm-devel@patchwork.kernel.org>; Thu, 4 Jan 2018 14:55:10 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8A4DAC057F83; Thu, 4 Jan 2018 14:55:09 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6952566A12; Thu, 4 Jan 2018 14:55:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 3EEA618033DA; Thu, 4 Jan 2018 14:55:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w04EW3oE021323 for <dm-devel@listman.util.phx.redhat.com>; Thu, 4 Jan 2018 09:32:03 -0500 Received: by smtp.corp.redhat.com (Postfix) id 8FA505DD9C; Thu, 4 Jan 2018 14:32:03 +0000 (UTC) Delivered-To: dm-devel@redhat.com Received: from mx1.redhat.com (ext-mx10.extmail.prod.ext.phx2.redhat.com [10.5.110.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B1985DA2A; Thu, 4 Jan 2018 14:31:55 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8E14564137; Thu, 4 Jan 2018 14:31:54 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 21so758638pgg.3; Thu, 04 Jan 2018 06:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=KLkvKpJ86m/VqIBEUcl7P9D+66WWPJ0/Q1KJ9mkPrmQ=; b=hfQlu+rZ4QG385GE0MtFAq3+vKeqE13K5gEvbwARJ2j4Ip1PnN+wMdfIuaHvphhZXx pCskZC1PZLBzW/fUlF5KMg9rJ4wCS5sUmDPN8kCpt6YHsNUsHEcc/qG2R9NoIF45zFNH dI1ClpHT3XQ3JWQXfllWX7ejaTNaC/lspl6WryfW76AbjPvBZfH53LXRf7C0icumkMLm /z09N1ctImySsR1iSTC/23g6rf4It2SnDghhbkiJza2KzwW2ZjFfVyM64qzLAgWXOiBe eZ8GUXpI8TkrmI5QMjOd3r0pcczosXv5/DFQMb5PY0h8BbnjJ9i4mbeqpMSKA2vufb0M 6AIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=KLkvKpJ86m/VqIBEUcl7P9D+66WWPJ0/Q1KJ9mkPrmQ=; b=iH3+SUoMV5m+NgPA6JgnGCZzbtpdNrbTRm2rvmVho+iJlq52fhyeXK+3TKHw/kb7eR kHxVUuSY6FfpchdCI+4mvIlPk8mx0QOK9lz++WdOVZNAvtonCUq1bZB0FfCXTE5s0qJI 6SPQDo2HElxuB4gZuQhGUqdVSkMmw/Ie7bJYd37aJvoFhMiFrD+A2PV89uObnKSdDdVU /0CPzBSQXiiiRtHjzsyg7Sjd3OkW2guxjMVGnuS2wcO3dbudOaXjJPJKpmjYD6XqmIa5 w88kIfl6K3FkBLekkh6Erai3Jooc6ofQlmKZR8FomJkcUXMy8i97rt7EU3Yl4OhNGgHy /34w== X-Gm-Message-State: AKGB3mK98X2GVghkSenQO4+ogcrLM6f9+KXU1c/vUSQU2H5edSayv/hV a4x6uc6FVtLP7koBPK8B3/3y1lrD X-Google-Smtp-Source: ACJfBouB+CMF/o3Na11EpdmgxHO4bPb+9SeECmv6I4A7EJqOvQy/hx0TuNzxrP5PZsopIdmTS/O02Q== X-Received: by 10.98.74.148 with SMTP id c20mr4930448pfj.200.1515076313830; Thu, 04 Jan 2018 06:31:53 -0800 (PST) Received: from localhost.localdomain ([123.119.211.103]) by smtp.gmail.com with ESMTPSA id q68sm8135820pfb.1.2018.01.04.06.31.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 06:31:53 -0800 (PST) From: Xiongwei Song <sxwjean@gmail.com> To: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com Date: Thu, 4 Jan 2018 22:31:26 +0800 Message-Id: <20180104143126.29339-1-sxwjean@gmail.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 04 Jan 2018 14:31:54 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 04 Jan 2018 14:31:54 +0000 (UTC) for IP:'74.125.83.67' DOMAIN:'mail-pg0-f67.google.com' HELO:'mail-pg0-f67.google.com' FROM:'sxwjean@gmail.com' RCPT:'' X-RedHat-Spam-Score: -0.13 (DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_PASS) 74.125.83.67 mail-pg0-f67.google.com 74.125.83.67 mail-pg0-f67.google.com <sxwjean@gmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.5.110.39 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: dm-devel@redhat.com X-Mailman-Approved-At: Thu, 04 Jan 2018 09:51:37 -0500 Cc: linux-kernel@vger.kernel.org Subject: [dm-devel] [PATCH] dm bufio: fix missed destroy of mutex c->lock X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development <dm-devel.redhat.com> List-Unsubscribe: <https://www.redhat.com/mailman/options/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=unsubscribe> List-Archive: <https://www.redhat.com/archives/dm-devel> List-Post: <mailto:dm-devel@redhat.com> List-Help: <mailto:dm-devel-request@redhat.com?subject=help> List-Subscribe: <https://www.redhat.com/mailman/listinfo/dm-devel>, <mailto:dm-devel-request@redhat.com?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Thu, 04 Jan 2018 14:55:09 +0000 (UTC) X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/md/dm-bufio.c b/drivers/md/dm-bufio.c index c546b567f3b5..53c0d5d2039a 100644 --- a/drivers/md/dm-bufio.c +++ b/drivers/md/dm-bufio.c @@ -1811,6 +1811,7 @@ void dm_bufio_client_destroy(struct dm_bufio_client *c) BUG_ON(c->n_buffers[i]); dm_io_client_destroy(c->dm_io); + mutex_destroy(&c->lock); kfree(c); } EXPORT_SYMBOL_GPL(dm_bufio_client_destroy);
The mutex c->lock is initialized in dm_bufio_client_create, however, it is not destroyed before free the structure of dm_bufio_client in dm_bufio_client_destroy. Signed-off-by: Xiongwei Song <sxwjean@gmail.com> --- drivers/md/dm-bufio.c | 1 + 1 file changed, 1 insertion(+)