# Re: \[PATCH v4\] HID: lg4ff: Remove sysfs iface before deallocating memory

- From: \<hidden\>
- Date: 2012-04-02 01:49:37 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2012/04/8919205
- Thread: https://ratatoskr.run/linux-input/2012/03/8919191/t.md

```text
Hi all,
Looks good to me, built and tested working with a G27.

I also have the 3rd patch (mentioned by Michal) and a 4th which implements
LED control on the G27. How do you want these sent? (they need to be built
on top of Michal's patches)

Simon

Signed-off-by: <redacted>

> Hi,
>
> This patch fixes a possible race condition caused by the sysfs
> interface being removed after the memory used by the interface
> was already kfree'd.
> Please note that this patch depends on "hid-lg: Allow for custom
> device-specific properties to be stored in private drv data" because
> it also fixes a tiny glitch - a leftover #include in the hid-lg.h
>
> I have another lg4ff patch pending that makes use of the new possibility
> to
> store device-specific data which is currently being review by Simon.
> The patch as it is right now will depend on this patch.
>
> Signed-off-by: Michal Malý <redacted>
>

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
