]> git.baikalelectronics.ru Git - kernel.git/commit
net: cxgb3: add error handling for sysfs_create_group
authorZhouyang Jia <jiazhouyang09@gmail.com>
Fri, 15 Jun 2018 03:06:17 +0000 (11:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Jun 2018 16:15:24 +0000 (09:15 -0700)
commitf048edc5077feedb15cb42ae79fe4a51cfe947c7
tree729318838b18af43f972820da4cb58c6ebe59e82
parent661bf93866451ed2ee21c8d6e19524c67e2e0b5e
net: cxgb3: add error handling for sysfs_create_group

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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c