lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <427d64721003232240g34f5a1abi7f6174480599134c@mail.gmail.com>
Date:	Wed, 24 Mar 2010 13:40:07 +0800
From:	Axel Lin <axel.lin@...il.com>
To:	linux-kernel <linux-kernel@...r.kernel.org>
Cc:	Corentin Chary <corentin.chary@...il.com>
Subject: [PATCH] asus-laptop: Return -ENOMEM in case of failed rfkill_alloc()

Return -ENOMEM instead of -EINVAL in case of failed rfkill_alloc()

Signed-off-by: Axel Lin <axel.lin@...il.com>
---
 drivers/platform/x86/asus-laptop.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/platform/x86/asus-laptop.c
b/drivers/platform/x86/asus-laptop.c
index db5f7db..21dbe38 100644
--- a/drivers/platform/x86/asus-laptop.c
+++ b/drivers/platform/x86/asus-laptop.c
@@ -1094,7 +1094,7 @@ static int asus_rfkill_init(struct asus_laptop *asus)
                                        RFKILL_TYPE_GPS,
                                        &asus_gps_rfkill_ops, NULL);
        if (!asus->gps_rfkill)
-               return -EINVAL;
+               return -ENOMEM;

        result = rfkill_register(asus->gps_rfkill);
        if (result) {
-- 
1.5.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ