diff options
Diffstat (limited to 'backport/compat/backport-4.12.c')
-rw-r--r-- | backport/compat/backport-4.12.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backport/compat/backport-4.12.c b/backport/compat/backport-4.12.c index 4948b531..5fc8c10c 100644 --- a/backport/compat/backport-4.12.c +++ b/backport/compat/backport-4.12.c @@ -226,11 +226,13 @@ int bp_extack_genl_register_family(struct genl_family *family) family->id = copy->family.id; family->attrbuf = copy->family.attrbuf; +#if LINUX_VERSION_IS_LESS(3,13,0) && RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,0) /* family ID from the original family struct will be used when building * genl messages (sent as nlmsg_type), so the new id should be updated * in the original (older kernel format) family struct too */ family->family.id = copy->family.id; +#endif #if LINUX_VERSION_IS_GEQ(3,13,0) family->mcgrp_offset = copy->family.mcgrp_offset; |