summaryrefslogtreecommitdiff
path: root/sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch
blob: 5ba1764be3c511dcf94e2806266a3bd3155770a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Author: He Zhe <zhe.he@windriver.com>
Origin: upstream, https://github.com/LINBIT/drbd-utils/commit/859151b228
Bug: https://github.com/LINBIT/drbd-utils/pull/4
Bug-Ubuntu: https://launchpad.net/bugs/1866458
Reviewed-By: Rafael David Tinoco <rafaeldtinoco@ubuntu.com>
Last-Update: 2020-03-09

--- drbd-utils-8.9.10.orig/user/shared/libgenl.h
+++ drbd-utils-8.9.10/user/shared/libgenl.h
@@ -851,7 +851,7 @@ static inline struct nlattr *nla_nest_st
 {
 	struct nlattr *start = (struct nlattr *)msg->tail;
 
-	if (nla_put(msg, attrtype, 0, NULL) < 0)
+	if (nla_put(msg, attrtype | NLA_F_NESTED, 0, NULL) < 0)
 		return NULL;
 
 	return start;