Skip to content
Snippets Groups Projects
Commit cd46eb89 authored by Li RongQing's avatar Li RongQing Committed by Jens Axboe
Browse files

nbd: propagate genlmsg_reply return code


genlmsg_reply can fail, so propagate its return code

Signed-off-by: default avatarLi RongQing <lirongqing@baidu.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 6dc8746d
Branches
No related tags found
No related merge requests found
......@@ -2118,8 +2118,7 @@ static int nbd_genl_status(struct sk_buff *skb, struct genl_info *info)
}
nla_nest_end(reply, dev_list);
genlmsg_end(reply, reply_head);
genlmsg_reply(reply, info);
ret = 0;
ret = genlmsg_reply(reply, info);
out:
mutex_unlock(&nbd_index_mutex);
return ret;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment