All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] genl: Do not call the callback for NLMSG_DONE messages
@ 2014-11-12 14:47 Patrik Flykt
  2014-11-15  3:52 ` Denis Kenzior
  0 siblings, 1 reply; 2+ messages in thread
From: Patrik Flykt @ 2014-11-12 14:47 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 583 bytes --]

The message indicates end of a multipart netlink message and does not
carry any data.
---
 ell/genl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ell/genl.c b/ell/genl.c
index 67bde5b..b180712 100644
--- a/ell/genl.c
+++ b/ell/genl.c
@@ -373,7 +373,7 @@ static void process_request(struct l_genl *genl, const struct nlmsghdr *nlmsg)
 		return;
 	}
 
-	if (request->callback)
+	if (request->callback && nlmsg->nlmsg_type != NLMSG_DONE)
 		request->callback(msg, request->user_data);
 
 	if (nlmsg->nlmsg_flags & NLM_F_MULTI) {
-- 
2.1.1


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

* Re: [PATCH] genl: Do not call the callback for NLMSG_DONE messages
  2014-11-12 14:47 [PATCH] genl: Do not call the callback for NLMSG_DONE messages Patrik Flykt
@ 2014-11-15  3:52 ` Denis Kenzior
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Kenzior @ 2014-11-15  3:52 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 292 bytes --]

Hi Patrik,

On 11/12/2014 08:47 AM, Patrik Flykt wrote:
> The message indicates end of a multipart netlink message and does not
> carry any data.
> ---
>   ell/genl.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>

Patch has been applied, thanks.

Regards,
-Denis


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

end of thread, other threads:[~2014-11-15  3:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-12 14:47 [PATCH] genl: Do not call the callback for NLMSG_DONE messages Patrik Flykt
2014-11-15  3:52 ` Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.