Re: [PATCH v2 1/5] Input: adp5589: use devm_kzalloc() to allocate the kpad object

2020-11-18 Thread Dmitry Torokhov
On Thu, Nov 12, 2020 at 09:43:04AM +0200, Alexandru Ardelean wrote: > This removes the need to manually free the kpad object and cleans up some > exit/error paths. > The error path cleanup should reduce the risk of any memory leaks with this > object. > > Signed-off-by: Alexandru Ardelean Applie

[PATCH v2 1/5] Input: adp5589: use devm_kzalloc() to allocate the kpad object

2020-11-11 Thread Alexandru Ardelean
This removes the need to manually free the kpad object and cleans up some exit/error paths. The error path cleanup should reduce the risk of any memory leaks with this object. Signed-off-by: Alexandru Ardelean --- drivers/input/keyboard/adp5589-keys.c | 13 - 1 file changed, 4 insert