]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sunxi_wdt: fix improper error exit code
authorMartin Wu <wuyan@allwinnertech.com>
Fri, 29 May 2020 09:45:14 +0000 (17:45 +0800)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:42:46 +0000 (18:42 +0200)
commite927d12dca2b20aae046660960b6a79f9845243c
tree221d312d0addb8539ef5e4170ecd3aafceab27c0
parent17fa6900e321780caea11271dfad48408515d4af
watchdog: sunxi_wdt: fix improper error exit code

sunxi_wdt_probe() should return -ENOMEM when devm_kzalloc() fails.

Signed-off-by: Martin Wu <wuyan@allwinnertech.com>
Signed-off-by: Frank Lee <frank@allwinnertech.com>
Acked-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200529094514.26374-1-frank@allwinnertech.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/sunxi_wdt.c