[lkml]   [2019]   [Apr]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v2] gpio: Fix gpiochip_add_data_with_key() error path
On Wed, Apr 24, 2019 at 3:59 PM Geert Uytterhoeven
<> wrote:

> The err_remove_chip block is too coarse, and may perform cleanup that
> must not be done. E.g. if of_gpiochip_add() fails, of_gpiochip_remove()
> is still called, causing:

Good catch!

Patch applied for fixes.

Linus Walleij

 \ /
  Last update: 2019-04-25 09:16    [W:0.038 / U:14.340 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site