linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] nbd: propagate genlmsg_reply return code
@ 2019-02-19  5:14 Li RongQing
  2019-02-28 21:06 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Li RongQing @ 2019-02-19  5:14 UTC (permalink / raw)
  To: linux-block, josef

genlmsg_reply can fail, so propagate its return code

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 drivers/block/nbd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 7c9a949e876b..accb627fc158 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;
-- 
2.16.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] nbd: propagate genlmsg_reply return code
  2019-02-19  5:14 [PATCH] nbd: propagate genlmsg_reply return code Li RongQing
@ 2019-02-28 21:06 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2019-02-28 21:06 UTC (permalink / raw)
  To: Li RongQing, linux-block, josef

On 2/18/19 10:14 PM, Li RongQing wrote:
> genlmsg_reply can fail, so propagate its return code

Applied, thanks.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-02-28 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-19  5:14 [PATCH] nbd: propagate genlmsg_reply return code Li RongQing
2019-02-28 21:06 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).