Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966396AbbD2QAp (ORCPT ); Wed, 29 Apr 2015 12:00:45 -0400 Received: from mail-pd0-f177.google.com ([209.85.192.177]:33284 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966321AbbD2QAn (ORCPT ); Wed, 29 Apr 2015 12:00:43 -0400 From: Shawn Chang X-Google-Original-From: Shawn Chang < citypw@gmail.com > To: linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: Shawn C Subject: [PATCH 2/2] Fix variable "error" missing initialization Date: Thu, 30 Apr 2015 00:00:34 +0800 Message-Id: <1430323234-17452-1-git-send-email-citypw@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 763 Lines: 28 From: Shawn C Signed-off-by: Shawn C --- mm/mlock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/mlock.c b/mm/mlock.c index c7f6785..660e5c5 100644 --- a/mm/mlock.c +++ b/mm/mlock.c @@ -557,7 +557,7 @@ static int do_mlock(unsigned long start, size_t len, int on) { unsigned long nstart, end, tmp; struct vm_area_struct * vma, * prev; - int error; + int error = 0; VM_BUG_ON(start & ~PAGE_MASK); VM_BUG_ON(len != PAGE_ALIGN(len)); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/