summaryrefslogtreecommitdiff
path: root/sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2020-03-30 19:10:20 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2020-03-30 19:10:20 +0100
commit4a8d4872b423a2672ac2d31c9c33ec4ca8326c73 (patch)
tree32a0c5a1eded1ed8b112c9c96917f4cdb1a89be4 /sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch
parenthstr patch no longer needed (diff)
downloadpatches-4a8d4872b423a2672ac2d31c9c33ec4ca8326c73.tar.bz2
patches-4a8d4872b423a2672ac2d31c9c33ec4ca8326c73.tar.xz
patches-4a8d4872b423a2672ac2d31c9c33ec4ca8326c73.zip
Patch drbd-utils to kernels >= 5.3
Diffstat (limited to 'sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch')
-rw-r--r--sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch b/sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch
new file mode 100644
index 0000000..5ba1764
--- /dev/null
+++ b/sys-cluster/drbd-utils/drbd-utils-kernel-5.3.patch
@@ -0,0 +1,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;