Message ID | 20180708210154.10423-7-ebiggers3@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> 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 4275D603D7 for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sun, 8 Jul 2018 21:08:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34BDF289DC for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sun, 8 Jul 2018 21:08:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 28453289E0; Sun, 8 Jul 2018 21:08:54 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2430289DC for <patchwork-linux-fsdevel@patchwork.kernel.org>; Sun, 8 Jul 2018 21:08:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933034AbeGHVIk (ORCPT <rfc822;patchwork-linux-fsdevel@patchwork.kernel.org>); Sun, 8 Jul 2018 17:08:40 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:46735 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933273AbeGHVFi (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Sun, 8 Jul 2018 17:05:38 -0400 Received: by mail-pf0-f194.google.com with SMTP id l123-v6so12138357pfl.13; Sun, 08 Jul 2018 14:05:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=hb6nvnZREFFBtwaeRQ3owfpA/RvD/JqI9k4XfoZgEFc=; b=Gn96XFdru/z4nSNKambdxUrbB2HphI/9tCjcOEuaR7zEbsTEoIj5J0tN7ipHwxsVqE aK1tgVa4Y/vIuT3rB6nC0LHUwCmTHy5vKoLVOgbx+PzsKFc1ObN7gXC9NkeSc23VZcYJ yUEjawfM0E0NcDTRjZlD/rg+MWxmKAbPDuYPD0Dvd6gPJcoTjTyHPEaBxonS8X16B7Mh l0OEwXu1gOL8xKx28z0FB818T1pmDw8KmXix2vLKBwzLvjOxK2WXnauLG0OvBqVmNuy3 9ZPVObuMT6vhtwOqxP0Tvtn1/laCCF/irzq3B2brmV4VLwD1o/kA2SNvJPOhWHvnD4vH y6vw== 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:in-reply-to :references; bh=hb6nvnZREFFBtwaeRQ3owfpA/RvD/JqI9k4XfoZgEFc=; b=Gx6vULu/aj+BPevK3H6w3s2TPUakz4lAwBx1i9jqahOzTd1y8/dsDxkwJ6+2sswzD4 dxWSonKo1a22YaGYL4bLw34kjEAnY6pT9RIHSIZT/1RdtTJFnIIYOteQcesi+TINBK8o xWwQ012xVhj4BWGXuuFjqBYeGn8PKO5KeQukENrdMbou+8nOVacEg45BtVkok+OckZS4 C1lg+vW+nB7s3nSVtUaepxsyrocoxoPsuWSpZu/7XlkE6cYLejO1b0Xuw5oA/GfPZUbT t4qGOrTPpcCNoJwfvXpHN84fOYB23zV3Cqa9XfkuTN/NqF2idcyoE6TXIonoWcoJF5/P tdWg== X-Gm-Message-State: APt69E0XaUMQ8THa+mLaj60qlCuJmMhPN1zO7z2/hSmfLR4FYxvWq3Q0 +HJC/14Uqw28dDKzPOUNBdAYOp8g X-Google-Smtp-Source: AAOMgpdau8Y9Lo4DqmwzpbdrsQZj/ntjR3DjgAG82JoxlHjXeOK4/Gpa2GbXSq8fiePZJs5xI2FgPg== X-Received: by 2002:a63:524e:: with SMTP id s14-v6mr15415258pgl.35.1531083937902; Sun, 08 Jul 2018 14:05:37 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id x68-v6sm23355681pfb.138.2018.07.08.14.05.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:05:37 -0700 (PDT) From: Eric Biggers <ebiggers3@gmail.com> To: David Howells <dhowells@redhat.com>, Alexander Viro <viro@zeniv.linux.org.uk>, linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Eric Biggers <ebiggers@google.com> Subject: [PATCH 06/18] fs_context: fix memory leak with 's' (source) command Date: Sun, 8 Jul 2018 14:01:42 -0700 Message-Id: <20180708210154.10423-7-ebiggers3@gmail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180708210154.10423-1-ebiggers3@gmail.com> References: <20180708210154.10423-1-ebiggers3@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/fsopen.c b/fs/fsopen.c index 5d346ac78d504..8d6fa4ba8fb55 100644 --- a/fs/fsopen.c +++ b/fs/fsopen.c @@ -98,7 +98,6 @@ static ssize_t fscontext_write(struct file *file, ret = vfs_set_fs_source(fc, data, len - 2); if (ret < 0) goto err_unlock; - data = NULL; break; case 'o':