1. 16 12月, 2009 3 次提交
  2. 16 6月, 2009 1 次提交
  3. 22 4月, 2009 2 次提交
  4. 31 3月, 2009 1 次提交
    • A
      proc 2/2: remove struct proc_dir_entry::owner · 99b76233
      Alexey Dobriyan 提交于
      Setting ->owner as done currently (pde->owner = THIS_MODULE) is racy
      as correctly noted at bug #12454. Someone can lookup entry with NULL
      ->owner, thus not pinning enything, and release it later resulting
      in module refcount underflow.
      
      We can keep ->owner and supply it at registration time like ->proc_fops
      and ->data.
      
      But this leaves ->owner as easy-manipulative field (just one C assignment)
      and somebody will forget to unpin previous/pin current module when
      switching ->owner. ->proc_fops is declared as "const" which should give
      some thoughts.
      
      ->read_proc/->write_proc were just fixed to not require ->owner for
      protection.
      
      rmmod'ed directories will be empty and return "." and ".." -- no harm.
      And directories with tricky enough readdir and lookup shouldn't be modular.
      We definitely don't want such modular code.
      
      Removing ->owner will also make PDE smaller.
      
      So, let's nuke it.
      
      Kudos to Jeff Layton for reminding about this, let's say, oversight.
      
      http://bugzilla.kernel.org/show_bug.cgi?id=12454Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
      99b76233
  5. 13 11月, 2008 1 次提交
  6. 23 9月, 2008 1 次提交
  7. 21 8月, 2008 1 次提交
  8. 30 7月, 2008 1 次提交
  9. 15 5月, 2008 1 次提交
  10. 29 4月, 2008 7 次提交
  11. 19 10月, 2007 3 次提交
  12. 15 10月, 2007 1 次提交
  13. 10 10月, 2007 1 次提交
    • J
      drivers/firmware: const-ify DMI API and internals · 1855256c
      Jeff Garzik 提交于
      Three main sets of changes:
      
      1) dmi_get_system_info() return value should have been marked const,
         since callers should not be changing that data.
      
      2) const-ify DMI internals, since DMI firmware tables should,
         whenever possible, be marked const to ensure we never ever write to
         that data area.
      
      3) const-ify DMI API, to enable marking tables const where possible
         in low-level drivers.
      
      And if we're really lucky, this might enable some additional
      optimizations on the part of the compiler.
      
      The bulk of the changes are #2 and #3, which are interrelated.  #1 could
      have been a separate patch, but it was so small compared to the others,
      it was easier to roll it into this changeset.
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      1855256c
  14. 20 9月, 2007 1 次提交
  15. 23 8月, 2007 1 次提交
  16. 17 8月, 2007 1 次提交
  17. 01 8月, 2007 1 次提交
  18. 17 7月, 2007 1 次提交
  19. 13 5月, 2007 2 次提交
  20. 09 5月, 2007 3 次提交
  21. 05 3月, 2007 1 次提交
  22. 03 2月, 2007 1 次提交
  23. 11 12月, 2006 2 次提交
  24. 08 12月, 2006 2 次提交