Re: [PATCH] block/rnbd: server: Fix error return code in rnbd_srv_create_dev_sysfs()

2020-11-26 Thread Jinpu Wang
On Wed, Nov 25, 2020 at 1:47 PM Wang ShaoBo wrote: > > Fix to return -ENOMEM error code from the error handling case where > kobject_create_and_add() failed instead of 0 in rnbd_srv_create_dev_sysfs(), > as done elsewhere in this function. > > Signed-off-by: Wang ShaoBo Thanks Shaobo, we have a

[PATCH] block/rnbd: server: Fix error return code in rnbd_srv_create_dev_sysfs()

2020-11-25 Thread Wang ShaoBo
Fix to return -ENOMEM error code from the error handling case where kobject_create_and_add() failed instead of 0 in rnbd_srv_create_dev_sysfs(), as done elsewhere in this function. Signed-off-by: Wang ShaoBo --- drivers/block/rnbd/rnbd-srv-sysfs.c | 4 +++- 1 file changed, 3 insertions(+), 1