From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Azael Avalos <coproscefalo@gmail.com>
Cc: platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org, Matthew Garrett <mjg@redhat.com>
Subject: Re: [PATCH] toshiba_acpi: FULL TOS1900 device support
Date: Fri, 10 Dec 2010 13:35:51 -0800 [thread overview]
Message-ID: <20101210213551.GE1630@core.coreip.homeip.net> (raw)
In-Reply-To: <AANLkTimW5ro7EQBgoqMLSxnEsVrinL2S+USu207-Nbh=@mail.gmail.com>
Hi Azael,
On Fri, Dec 10, 2010 at 02:13:18PM -0700, Azael Avalos wrote:
> error = input_register_device(toshiba_acpi.hotkey_dev);
> if (error) {
> printk(MY_INFO "Unable to register input device\n");
> - goto err_remove_notify;
> + goto err_free_keymap;
Extra space in indentation.
> }
>
> return 0;
>
> - err_remove_notify:
> - acpi_remove_notify_handler(toshiba_acpi.handle,
> - ACPI_DEVICE_NOTIFY, toshiba_acpi_notify);
> - err_free_keymap:
> - sparse_keymap_free(toshiba_acpi.hotkey_dev);
> - err_free_dev:
> +err_free_keymap:
> + if (toshiba_acpi.hci_type == 2)
> + i8042_remove_filter(toshiba_i8042_filter);
> +err_free_dev:
> input_free_device(toshiba_acpi.hotkey_dev);
> toshiba_acpi.hotkey_dev = NULL;
> return error;
I do not actually see you calling sparse_keymap_free() in the error path
anymore.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2010-12-10 21:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-10 21:13 [PATCH] toshiba_acpi: FULL TOS1900 device support Azael Avalos
2010-12-10 21:35 ` Dmitry Torokhov [this message]
2010-12-11 0:06 ` Azael Avalos
2010-12-15 8:10 ` Dmitry Torokhov
2010-12-20 2:03 ` Azael Avalos
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=20101210213551.GE1630@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=coproscefalo@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.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