From patchwork Wed May 6 13:19:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kinglong Mee X-Patchwork-Id: 6349581 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 6E09DBEEE1 for ; Wed, 6 May 2015 13:19:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A38A9202EC for ; Wed, 6 May 2015 13:19:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE9DB2015A for ; Wed, 6 May 2015 13:19:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750876AbbEFNT3 (ORCPT ); Wed, 6 May 2015 09:19:29 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33029 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750808AbbEFNT2 (ORCPT ); Wed, 6 May 2015 09:19:28 -0400 Received: by pacwv17 with SMTP id wv17so9399233pac.0; Wed, 06 May 2015 06:19:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=HojIpzqpfRZc2LFXe7RN9QzU3ajImbPYnMBB01dawA4=; b=JuLJqThYht8LtTaakWOmDmmk0lMDMMvI1iZfBAtZ2AJ5rA8ok1jff18+Au36PctMyi oxvpLUt6Tem1t9LBbCSmJ5/BWCo87F8tAPIJ8bjFuCXLxx93CLim4Z/5dyF1QN7e92Jw KIRyJ/J+p9C57O+bj0iR7ewV7+9+w7YYmBJOoYER4JN3qBGMgI/q+se3wpnJjDr5sa8d /mT9awn22t4TZ91Od8h1eGkqyaN7LwydKOp8b71hm7lLvLX8nxhLPHJKZZKHsRIKAeJh XBrkxMegFFv8kQ3dsvCiGR9wlPkqNOGSxpWeqS8AOL1e23qNmxkh4eLj7uBXpUflB7sW a1cQ== X-Received: by 10.68.139.103 with SMTP id qx7mr61051382pbb.133.1430918368528; Wed, 06 May 2015 06:19:28 -0700 (PDT) Received: from [192.168.99.11] ([104.143.41.79]) by mx.google.com with ESMTPSA id xs10sm1975323pab.35.2015.05.06.06.19.25 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 May 2015 06:19:27 -0700 (PDT) Message-ID: <554A14DB.1020504@gmail.com> Date: Wed, 06 May 2015 21:19:23 +0800 From: Kinglong Mee User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Al Viro , linux-fsdevel@vger.kernel.org, "linux-nfs@vger.kernel.org" CC: "J. Bruce Fields" , NeilBrown , Trond Myklebust , kinglongmee@gmail.com Subject: [PATCH 1/4] fs_pin: Fix uninitialized value in fs_pin References: <554A149B.5060102@gmail.com> In-Reply-To: <554A149B.5060102@gmail.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without initialized, done in fs_pin at stack space may contains strange value. Signed-off-by: Kinglong Mee --- include/linux/fs_pin.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/fs_pin.h b/include/linux/fs_pin.h index 3886b3b..18fad53 100644 --- a/include/linux/fs_pin.h +++ b/include/linux/fs_pin.h @@ -16,6 +16,7 @@ static inline void init_fs_pin(struct fs_pin *p, void (*kill)(struct fs_pin *)) INIT_HLIST_NODE(&p->s_list); INIT_HLIST_NODE(&p->m_list); p->kill = kill; + p->done = 0; } void pin_remove(struct fs_pin *);