Files
linux/drivers
Dan Carpenter 5a408693b4 rtc: sysfs: fix NULL check in rtc_add_groups()
[ Upstream commit 777d8ae56d ]

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: a0a1a1ba30 ("rtc: sysfs: facilitate attribute add to rtc device")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-11-20 18:45:25 +01:00
..
2019-05-14 19:17:53 +02:00
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:08 +02:00
2019-11-12 19:20:30 +01:00
2019-07-26 09:14:05 +02:00
2019-09-16 08:22:25 +02:00
2019-05-31 06:46:14 -07:00
2019-10-11 18:21:13 +02:00