[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CACRpkday6zMGSKvc4HTVKP3oezTdR5x_MHaK8nvDHWwu260B=A@mail.gmail.com>
Date: Thu, 29 Aug 2013 19:45:29 +0200
From: Linus Walleij <linus.walleij@...aro.org>
To: Tim Bird <tbird20d@...il.com>,
Alexandre Courbot <acourbot@...dia.com>
Cc: Grant Likely <grant.likely@...aro.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"Bird, Tim" <tim.bird@...ymobile.com>
Subject: Re: RFC: Bug in error handling in gpiolib.c
On Tue, Aug 27, 2013 at 9:17 PM, Tim Bird <tbird20d@...il.com> wrote:
> Hi all,
>
> There appears to be a bug in the error handling in
> drivers/gpi/gpiolib.c In certain error cases
> desc_to_gpio() is called to get the gpio number
> for an error message, but this may happen on code
> paths where desc->chip is NULL. This causes a panic
> on my system in gpiod_request(), as follows:
(...)
> Here's my patch:
> Subject: [PATCH] gpio: avoid panic on NULL desc->chip in gpiod_request
Patch applied. Unless we come up with something better,
there is some parallel discussion on how to handle NULL
descriptors.
Alexandre: OK to apply this?
Yours,
Linus Walleij
--
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