Li Zefan c7482b81c8 IB: Fix return value in ib_device_register_sysfs()
If kobject_create_and_add() fails and returns NULL, the current code
in ib_device_register_sysfs() does not set ret and hence returns 0.
Set ret to -ENOMEM for this failure, so that the caller knows that
ib_device_register_sysfs() actually failed.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-02-15 15:05:05 -08:00
..
2007-05-21 09:18:19 -07:00
2006-09-22 15:22:46 -07:00
2007-07-09 16:17:32 -07:00
2008-01-25 14:15:30 -08:00
2008-01-25 14:15:42 -08:00
2007-05-06 21:18:11 -07:00