Skip to content
  • Dmitri Vereshchagin's avatar
    Fix bpf_attr initialization · 1288ec68
    Dmitri Vereshchagin authored
    Using plain initialization list for a union with nested anonymous
    structs works incorrectly with Clang.  syscall() in bpf_update_element()
    may fail if bpf_attr is improperly initialized.  Initialization with
    memset() is more portable.
    1288ec68