Skip to content
Commit 0e012972 authored by Bo Liu's avatar Bo Liu Committed by Wim Van Sebroeck
Browse files

watchdog: Check dev_set_name() return value



It's possible that dev_set_name() returns -ENOMEM, catch and handle this.

Signed-off-by: default avatarBo Liu <liubo03@inspur.com>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20220920020312.2383-1-liubo03@inspur.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarWim Van Sebroeck <wim@linux-watchdog.org>
parent ec122fd9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment