020-nl80211_fix.patch 361 B

123456789101112
  1. --- a/compat/compat-2.6.37.c
  2. +++ b/compat/compat-2.6.37.c
  3. @@ -130,7 +130,8 @@ int compat_genl_register_family_with_ops
  4. __copy(dumpit);
  5. __copy(done);
  6. #undef __copy
  7. - ops[i].ops.doit = nl_doit_wrapper;
  8. + if (ops[i].doit)
  9. + ops[i].ops.doit = nl_doit_wrapper;
  10. ret = genl_register_ops(&family->family, &ops[i].ops);
  11. if (ret < 0)
  12. goto error_ops;