Re: [PATCH v2] net: cxgb3: add error handling for sysfs_create_group

From: David Miller
Date: Fri Jun 15 2018 - 12:15:42 EST


From: Zhouyang Jia <jiazhouyang09@xxxxxxxxx>
Date: Fri, 15 Jun 2018 11:06:17 +0800

> When sysfs_create_group fails, the lack of error-handling code may
> cause unexpected results.
>
> This patch adds error-handling code after calling sysfs_create_group.
>
> Signed-off-by: Zhouyang Jia <jiazhouyang09@xxxxxxxxx>
> ---
> v1->v2:
> - Turn off led when sysfs_create_group fails

Applied, thank you.