From: Len Brown <lenb@kernel.org>
To: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
Cc: linux-acpi@vger.kernel.org, mjg59@srcf.ucam.org
Subject: Re: [PATCH] ACPI: add "Fujitsu laptop extras" module, take 3
Date: Wed, 29 Aug 2007 02:16:59 -0400 [thread overview]
Message-ID: <200708290216.59248.lenb@kernel.org> (raw)
In-Reply-To: <200708290031.l7T0VUu3005216@turbo.physics.adelaide.edu.au>
> +static int __init fujitsu_init(void)
> +{
> + int ret, result;
> +
> + if (acpi_disabled)
> + return -ENODEV;
> +
> + fujitsu = kmalloc(sizeof(struct fujitsu_t), GFP_KERNEL);
> + if (!fujitsu)
> + return -ENOMEM;
> + memset(fujitsu, 0, sizeof(struct fujitsu_t));
> +
> + result = acpi_bus_register_driver(&acpi_fujitsu_driver);
> + if (result < 0) {
> + goto fail_acpi;
> + }
if this goto is taken, then "ret" is used uninitialized below:
> + fail_acpi:
> +
> + kfree(fujitsu);
> +
> + return ret;
> +}
prev parent reply other threads:[~2007-08-29 6:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200708290031.l7T0VUu3005216@turbo.physics.adelaide.edu.au>
2007-08-29 6:13 ` [PATCH] ACPI: add "Fujitsu laptop extras" module, take 3 Len Brown
2007-08-29 6:28 ` Jonathan Woithe
2007-08-29 7:07 ` Jonathan Woithe
2007-08-29 7:29 ` Len Brown
2007-08-29 23:19 ` Jonathan Woithe
2007-08-29 6:16 ` Len Brown [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200708290216.59248.lenb@kernel.org \
--to=lenb@kernel.org \
--cc=jwoithe@physics.adelaide.edu.au \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).