diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-19 00:14:07 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-28 16:06:37 -0500 |
commit | cd46eb89dff7f6390eaeb11013bb23aae196bbfc (patch) | |
tree | 863e9570a666f6998f0445b0e88758e7493553ff | |
parent | 6dc8746d7124c14bd86679ead7e64614263212c9 (diff) |
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>
-rw-r--r-- | drivers/block/nbd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 32a7ba1674b7..90ba9f4c03f3 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -2118,8 +2118,7 @@ static int nbd_genl_status(struct sk_buff *skb, struct genl_info *info) | |||
2118 | } | 2118 | } |
2119 | nla_nest_end(reply, dev_list); | 2119 | nla_nest_end(reply, dev_list); |
2120 | genlmsg_end(reply, reply_head); | 2120 | genlmsg_end(reply, reply_head); |
2121 | genlmsg_reply(reply, info); | 2121 | ret = genlmsg_reply(reply, info); |
2122 | ret = 0; | ||
2123 | out: | 2122 | out: |
2124 | mutex_unlock(&nbd_index_mutex); | 2123 | mutex_unlock(&nbd_index_mutex); |
2125 | return ret; | 2124 | return ret; |