diff options
author | Li RongQing <lirongqing@baidu.com> | 2019-02-19 06:14:07 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-02-28 22:06:37 +0100 |
commit | cd46eb89dff7f6390eaeb11013bb23aae196bbfc (patch) | |
tree | 863e9570a666f6998f0445b0e88758e7493553ff /drivers/block/nbd.c | |
parent | floppy: remove set but not used variable 'q' (diff) | |
download | linux-cd46eb89dff7f6390eaeb11013bb23aae196bbfc.tar.xz linux-cd46eb89dff7f6390eaeb11013bb23aae196bbfc.zip |
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 '')
-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; |