From patchwork Wed Jun 5 02:17:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2664251 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id B70CBDF2A1 for ; Wed, 5 Jun 2013 02:17:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751825Ab3FECRg (ORCPT ); Tue, 4 Jun 2013 22:17:36 -0400 Received: from mail-we0-f181.google.com ([74.125.82.181]:44982 "EHLO mail-we0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751676Ab3FECRg (ORCPT ); Tue, 4 Jun 2013 22:17:36 -0400 Received: by mail-we0-f181.google.com with SMTP id p58so853055wes.12 for ; Tue, 04 Jun 2013 19:17:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=XhokzJfShuHD0/Yd47QLywWJsMO+GRbbOhCsAmyaH2s=; b=Z8iMPoGMqOcTOJyOaRMei9bKid8SlLcANaGKNzKch33826Zz9F5pslZqeAwr114mYo iYuzLbpLNuudHXrv8MIqCTJixe63Sup1AHlcFCBWKfEABcuBqoyptm0foroZOkmXKuPb yAcY8YWha9Mo9R+FJ5ZSPDQRzWx6n2a2wKt/U/TOd0sw0shSDtWlwdNYt8Ph/E/ULoav koL86d2IlYhkTOg/NwWq6byCkuodWGXj6JITsLBqMNiSo+7/JuJVBny93HtS3qCDmDPp 2TAdthA8VBMdmJNzmGqUaYDGm4D4Whdr2JyuYbiwlbaxAH3Tt/2i9z+so4srfc9reW/m pGvw== MIME-Version: 1.0 X-Received: by 10.194.238.42 with SMTP id vh10mr15916713wjc.28.1370398655291; Tue, 04 Jun 2013 19:17:35 -0700 (PDT) Received: by 10.194.103.38 with HTTP; Tue, 4 Jun 2013 19:17:35 -0700 (PDT) Date: Wed, 5 Jun 2013 10:17:35 +0800 Message-ID: Subject: [PATCH] ACPI / APEI: fix error return code in einj_init() From: Wei Yongjun To: lenb@kernel.org, rjw@sisk.pl, gong.chen@linux.intel.com, tony.luck@intel.com Cc: yongjun_wei@trendmicro.com.cn, linux-acpi@vger.kernel.org Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Wei Yongjun Fix to return -ENOMEM in the debugfs_create_xxx() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun Reviewed-by: Chen Gong --- drivers/acpi/apei/einj.c | 1 + 1 file changed, 1 insertion(+) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/apei/einj.c b/drivers/acpi/apei/einj.c index 9a47d85..9d60bdd 100644 --- a/drivers/acpi/apei/einj.c +++ b/drivers/acpi/apei/einj.c @@ -732,6 +732,7 @@ static int __init einj_init(void) if (rc) goto err_release; + rc = -ENOMEM; einj_param = einj_get_parameter_address(); if ((param_extension || acpi5) && einj_param) { fentry = debugfs_create_x64("param1", S_IRUSR | S_IWUSR,