Re: [KJ] [PATCH] misc_register error return handling

From: Tobias Klauser
Date: Mon Sep 25 2006 - 05:26:35 EST


On 2006-09-25 at 10:59:00 +0200, Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> wrote:
> Ignore previous patch (mail client linewrap issue...)
>
> Some drivers do not handle failure of misc_register.
>
> Added return value checks appropriately in defaulting drivers
>
> Tested with:
> - allmodconfig
> - Manually tweaking Kconfig/Makefiles to make sure that the changed
> files compiles without any errors/warnings
>
> Signed-off-by: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx>
> ---
> arch/i386/kernel/apm.c | 23 +++++++++++++++++------
> arch/um/drivers/mmapper_kern.c | 6 ++++--
> arch/x86_64/kernel/mce.c | 6 +++++-
> drivers/char/watchdog/ep93xx_wdt.c | 4 ++++
> drivers/input/misc/hp_sdc_rtc.c | 7 ++++++-
> drivers/macintosh/apm_emu.c | 8 +++++++-
> drivers/macintosh/smu.c | 11 ++++++++---
> drivers/macintosh/via-pmu.c | 11 ++++++++---

Split up by driver/subsystem, please.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/