Re: [PATCH] gpiolib: fix freeing of descriptors on error

2018-09-14 Thread Linus Walleij
On Thu, Sep 13, 2018 at 9:56 PM Ricardo Ribalda Delgado wrote: > Hi Jim > > I have sent an identical patch 3 hours before you [1] ;) > Seems that we are working on the same stuff. Haha w00t but I'm grateful that you fine people are taking the chardev ABI for a ride! I recorded Jim's contributio

Re: [PATCH] gpiolib: fix freeing of descriptors on error

2018-09-13 Thread Ricardo Ribalda Delgado
Hi Jim I have sent an identical patch 3 hours before you [1] ;) Seems that we are working on the same stuff. Cheers [1] https://www.spinics.net/lists/linux-gpio/msg32541.html On Thu, Sep 13, 2018 at 6:42 PM Jim Paris wrote: > > When the main loop in linehandle_create() encounters an error, it

[PATCH] gpiolib: fix freeing of descriptors on error

2018-09-13 Thread Jim Paris
When the main loop in linehandle_create() encounters an error, it fails to free one of the previously-requested GPIO descriptors. This renders the unfreed GPIO unusable until reboot, and leaves its label pointing to free'd kernel memory. Cc: sta...@vger.kernel.org Fixes: ab3dbcf78f60 ("gpioib: do