nbd: propagate genlmsg_reply return code
genlmsg_reply can fail, so propagate its return code Signed-off-by: Li RongQing <lirongqing@baidu.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
6dc8746d71
commit
cd46eb89df
@ -2118,8 +2118,7 @@ static int nbd_genl_status(struct sk_buff *skb, struct genl_info *info)
|
|||||||
}
|
}
|
||||||
nla_nest_end(reply, dev_list);
|
nla_nest_end(reply, dev_list);
|
||||||
genlmsg_end(reply, reply_head);
|
genlmsg_end(reply, reply_head);
|
||||||
genlmsg_reply(reply, info);
|
ret = genlmsg_reply(reply, info);
|
||||||
ret = 0;
|
|
||||||
out:
|
out:
|
||||||
mutex_unlock(&nbd_index_mutex);
|
mutex_unlock(&nbd_index_mutex);
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user