Re: [PATCH v2] HID: hid-ntrig: add error handling for sysfs_create_group
From: Jiri Kosina
Date: Mon Jun 25 2018 - 09:16:51 EST
On Thu, 14 Jun 2018, Zhouyang Jia wrote:
> 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:
> - Remove goto statement.
Applied, thanks.
--
Jiri Kosina
SUSE Labs