From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756916AbdCXVh6 (ORCPT ); Fri, 24 Mar 2017 17:37:58 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:34087 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756575AbdCXVhA (ORCPT ); Fri, 24 Mar 2017 17:37:00 -0400 From: Jes Sorensen X-Google-Original-From: Jes Sorensen To: linux-kernel@vger.kernel.org Cc: john@johnmccutchan.com, rlove@rlove.org, eparis@parisplace.org, josef@toxicpanda.com, kernel-team@fb.com, Jes Sorensen Subject: [PATCH 1/5] notify: Call mutex_destroy() before freeing mutex memory Date: Fri, 24 Mar 2017 17:36:34 -0400 Message-Id: <20170324213638.9114-2-jsorensen@fb.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170324213638.9114-1-jsorensen@fb.com> References: <20170324213638.9114-1-jsorensen@fb.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The conversion of notify from using a spinlock to a mutex missed adding the call mutex_destroy(). Fixes: 986ab09 ("fsnotify: use a mutex instead of a spinlock to protect a groups mark list") Signed-off-by: Jes Sorensen Reviewed-by: Josef Bacik --- fs/notify/group.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/notify/group.c b/fs/notify/group.c index fbe3cbe..d231be3 100644 --- a/fs/notify/group.c +++ b/fs/notify/group.c @@ -36,6 +36,7 @@ static void fsnotify_final_destroy_group(struct fsnotify_group *group) if (group->ops->free_group_priv) group->ops->free_group_priv(group); + mutex_destroy(&group->mark_mutex); kfree(group); } -- 2.9.3