Thread (2 messages) 2 messages, 2 authors, 2018-08-28

Re: [PATCH] rtc: sysfs: fix NULL check in rtc_add_groups()

From: Alexandre Belloni <alexandre.belloni@bootlin.com>
Date: 2018-08-28 00:53:20
Also in: kernel-janitors

On 27/08/2018 12:22:34+0300, Dan Carpenter wrote:
devm_kcalloc() returns NULL, it never returns error pointers.  In the
current code we would return PTR_ERR(NULL) which is success, instead of
returning the -ENOMEM error code.

Fixes: a0a1a1ba3032 ("rtc: sysfs: facilitate attribute add to rtc device")
Signed-off-by: Dan Carpenter <redacted>
Applied, thanks.

-- 
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help