Messages in this thread | | | Date | Thu, 10 Apr 2014 18:06:01 +0200 | Subject | Re: [PATCH] gpio / ACPI: Don't crash on NULL chip->dev | From | Linus Walleij <> |
| |
On Mon, Mar 31, 2014 at 2:16 PM, Mika Westerberg <mika.westerberg@linux.intel.com> wrote:
> Commit aa92b6f689ac (gpio / ACPI: Allocate ACPI specific data directly in > acpi_gpiochip_add()) moved ACPI handle checking to acpi_gpiochip_add() but > forgot to check whether chip->dev is NULL before dereferencing it. > > Since chip->dev pointer is optional we can end up with crash like following:
Sorry for taking so long before getting to it, patch applied for fixes.
Yours, Linus Walleij
| |