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 <dan.carpenter@xxxxxxxxxx> > Applied, thanks. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com