Skip to contentSkip to conversation

netlink: mmap: fix status for not delivered skb

RFC PATCH New Ken-ichirou MATSUZAWA 1 participant 1 message Jul 22, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 3/5 netlink: mmap: fix status for not delivered skb

---
 net/netlink/af_netlink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/netlink/af_netlink.c +1 -1
index 5632ad0..a6fba4c 100644
@@ -847,7 +847,7 @@ static void netlink_skb_destructor(struct sk_buff *skb)
 		} else {
 			if (!(NETLINK_CB(skb).flags & NETLINK_SKB_DELIVERED)) {
 				hdr->nm_len = 0;
-				netlink_set_status(hdr, NL_MMAP_STATUS_VALID);
+				netlink_set_status(hdr, NL_MMAP_STATUS_UNUSED);
 			}
 			ring = &nlk_sk(sk)->rx_ring;
 		}
Signature · 4 lines
1.7.10.4


----- End forwarded message -----