net: return actual error on register_queue_kobjects
authorJie Liu <jeff.liu@oracle.com>
Tue, 17 Jun 2014 14:32:42 +0000 (22:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jun 2014 23:58:40 +0000 (16:58 -0700)
commitd36a4f4b472334562b8e7252e35d3d770db83815
tree7c176e9fa4e7df558c90c3dd2fd7e01136201f74
parent5a7baa78851b8e915480aa596de4bd2f13f31ffb
net: return actual error on register_queue_kobjects

Return the actual error code if call kset_create_and_add() failed

Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-sysfs.c