[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAC52Y8Ywm7+apVm0Lef4i_Y3Cnb083rg6uXLew-Esa8YH0zKJA@mail.gmail.com>
Date: Mon, 7 May 2012 21:19:38 +0100
From: Krzysztof Wilczynski <krzysztof.wilczynski@...ux.com>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: Grant Likely <grant.likely@...retlab.ca>,
Linus Walleij <linus.walleij@...ricsson.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpio: langwell: Prevent possible NULL pointer dereference
in the demux handler.
Hi,
[...]
>> - chip->irq_eoi(data);
>> + if (data)
>> + chip->irq_eoi(data);
>
> And how does data, which is always set as long as the interrupt exist
> prove that the chip has an eoi function?
It won't, a very good point. And as you told me (IRC) this has to be
solved on a more generic level (core handlers), and possibly
abstracted from the drivers. I will do and read through the code of
core handlers to learn more. Thanks for pointing it out and help so
far :)
KW
--
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