aboutsummaryrefslogtreecommitdiff
path: root/include/asm-m68knommu/msgbuf.h
diff options
context:
space:
mode:
authorLi Zefan <lizf@cn.fujitsu.com>2008-02-15 10:24:49 +0800
committerRoland Dreier <rolandd@cisco.com>2008-02-15 15:05:05 -0800
commitc7482b81c8b524193d736488c149adbe27a7eb7f (patch)
treea9b68e294a9565335463fdceee8fc0543974d28d /include/asm-m68knommu/msgbuf.h
parent101142c37be8e5af9b847860219217e6b958c739 (diff)
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>
Diffstat (limited to 'include/asm-m68knommu/msgbuf.h')
0 files changed, 0 insertions, 0 deletions