diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-19 13:14:07 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-28 14:06:37 -0700 |
commit | cd46eb89dff7f6390eaeb11013bb23aae196bbfc (patch) | |
tree | 863e9570a666f6998f0445b0e88758e7493553ff /drivers/block | |
parent | 6dc8746d7124c14bd86679ead7e64614263212c9 (diff) | |
download | linux-cd46eb89dff7f6390eaeb11013bb23aae196bbfc.tar.bz2 |
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>
Diffstat (limited to 'drivers/block')
-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) } 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; |