Re: [PATCH] gpio-mcp23s08: correctly handling failed allocation

2016-02-16 Thread Linus Walleij
On Tue, Feb 16, 2016 at 3:19 AM, Insu Yun wrote: > Since devm_kzalloc can be failed in memory pressure, > it needs to check and return -ENOMEM > > Signed-off-by: Insu Yun Patch applied. Yours, Linus Walleij

[PATCH] gpio-mcp23s08: correctly handling failed allocation

2016-02-15 Thread Insu Yun
Since devm_kzalloc can be failed in memory pressure, it needs to check and return -ENOMEM Signed-off-by: Insu Yun --- drivers/gpio/gpio-mcp23s08.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpio/gpio-mcp23s08.c b/drivers/gpio/gpio-mcp23s08.c index c767879..ed51dcf 100644 --- a