Re: [PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Li Zefan
Roland Dreier wrote: > Wow, good catch. How did you find this bug? > Just by accident, when I glanced down the code. ;) > Anyway, thanks, applied. > > - R. > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More

Re: [PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Roland Dreier
Wow, good catch. How did you find this bug? Anyway, thanks, applied. - R. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

[PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Li Zefan
Set ret to -ENOMEM when kobject_create_and_add() returns NULL. Signed-off-by: Li Zefan <[EMAIL PROTECTED]> --- drivers/infiniband/core/sysfs.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index

[PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Li Zefan
Set ret to -ENOMEM when kobject_create_and_add() returns NULL. Signed-off-by: Li Zefan [EMAIL PROTECTED] --- drivers/infiniband/core/sysfs.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index

Re: [PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Roland Dreier
Wow, good catch. How did you find this bug? Anyway, thanks, applied. - R. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at

Re: [PATCH] fix return value in ib_device_register_sysfs()

2008-02-14 Thread Li Zefan
Roland Dreier wrote: Wow, good catch. How did you find this bug? Just by accident, when I glanced down the code. ;) Anyway, thanks, applied. - R. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info