1. 12 5月, 2009 1 次提交
  2. 16 4月, 2009 1 次提交
  3. 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
  4. 30 3月, 2009 1 次提交
  5. 22 3月, 2009 1 次提交
  6. 06 3月, 2009 1 次提交
  7. 28 2月, 2009 1 次提交
  8. 18 2月, 2009 2 次提交
    • H
      drivers/net/wireless: fix sparse warnings: fix signedness · 9e05a2df
      Hannes Eder 提交于
      Fix this sparse warnings:
        drivers/net/wireless/airo.c:2102:21: warning: incorrect type in initializer (different signedness)
        drivers/net/wireless/airo.c:2126:21: warning: incorrect type in initializer (different signedness)
        drivers/net/wireless/airo.c:2167:21: warning: incorrect type in initializer (different signedness)
        drivers/net/wireless/airo.c:2191:21: warning: incorrect type in initializer (different signedness)
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      9e05a2df
    • H
      drivers/net/wireless: fix sparse warnings: symbol shadows an earlier one · 49c4a5dc
      Hannes Eder 提交于
      Impact:
        Move variable closer to usage resp.
        remove redundant variables resp.
        rename function scope variable.
      
      Fix this sparse warnings:
        drivers/net/wireless/airo.c:3840:29: warning: symbol 'i' shadows an earlier one
        drivers/net/wireless/airo.c:3751:13: originally declared here
        drivers/net/wireless/airo.c:3847:29: warning: symbol 'i' shadows an earlier one
        drivers/net/wireless/airo.c:3751:13: originally declared here
        drivers/net/wireless/airo.c:3861:21: warning: symbol 'i' shadows an earlier one
        drivers/net/wireless/airo.c:3751:13: originally declared here
        drivers/net/wireless/wavelan.c:43:13: warning: symbol 'irq' shadows an earlier one
        drivers/net/wireless/wavelan.p.h:692:17: originally declared here
      Signed-off-by: NHannes Eder <hannes@hanneseder.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      49c4a5dc
  9. 30 1月, 2009 8 次提交
  10. 26 12月, 2008 1 次提交
  11. 11 11月, 2008 1 次提交
  12. 04 11月, 2008 1 次提交
  13. 01 11月, 2008 1 次提交
    • W
      airo: Kill directly reference of netdev->priv · faf3994a
      Wang Chen 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      OK, becasue Dave S. Miller said, "every direct netdev->priv usage is a bug",
      and I want to kill netdev->priv later, I decided to convert all the direct
      reference of netdev->priv first.
      
      In this driver, I don't simply use netdev_priv() to replace netdev->priv.
      
      The reason is:
      Pointer netdev->priv was changed in this driver, but it shouldn't.
      Because the memory was allocated when alloc_netdev() and netdev->priv
      should always point to that memory.
      
      So I use netdev->ml_priv to replace netdev->priv.
      After replacing, both ai and ai->wifidev->ml_priv point to the same memory.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Cc: John W. Linville <linville@tuxdriver.com>
      Cc: Dan Williams <dcbw@redhat.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      faf3994a
  14. 28 10月, 2008 1 次提交
  15. 25 9月, 2008 1 次提交
    • D
      wireless: Read scan flags correctly on x86-64 · 9930ccee
      David Kilroy 提交于
      The SIOCSIWSCAN handler is passed data in an iw_point structure. Some
      drivers erronously use an iw_param instead.
      
      On 32 bit architectures the difference isn't noticed as the flags
      parameter tends to be the only one used by scan handlers and is at the
      same offset.
      
      On 64 bit architectures the pointer in the iw_point structure means the
      flag parameter is at different offsets in these structures.
      
      Thanks to Jean Tourrilhes for tracking this down for orinoco, and Pavel
      Roskin for confirming the fix and identifying other suspect handlers.
      Signed-off-by: NDavid Kilroy <kilroyd@googlemail.com>
      Acked-by: NPavel Roskin <proski@gnu.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      9930ccee
  16. 23 8月, 2008 1 次提交
  17. 27 6月, 2008 1 次提交
  18. 17 6月, 2008 1 次提交
    • D
      wext: Emit event stream entries correctly when compat. · ccc58057
      David S. Miller 提交于
      Three major portions to this change:
      
      1) Add IW_EV_COMPAT_LCP_LEN, IW_EV_COMPAT_POINT_OFF,
         and IW_EV_COMPAT_POINT_LEN helper defines.
      
      2) Delete iw_stream_check_add_*(), they are unused.
      
      3) Add iw_request_info argument to iwe_stream_add_*(), and use it to
         size the event and pointer lengths correctly depending upon whether
         IW_REQUEST_FLAG_COMPAT is set or not.
      
      4) The mechanical transformations to the drivers and wireless stack
         bits to get the iw_request_info passed down into the routines
         modified in #3.  Also, explicit references to IW_EV_LCP_LEN are
         replaced with iwe_stream_lcp_len(info).
      
      With a lot of help and bug fixes from Masakazu Mokuno.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ccc58057
  19. 15 6月, 2008 1 次提交
  20. 05 6月, 2008 1 次提交
    • A
      airo warning fix · b212f337
      Andrew Morton 提交于
      WARNING: space prohibited between function name and open parenthesis '('
      #22: FILE: drivers/net/wireless/airo.c:2907:
      +	while ((IN4500 (ai, COMMAND) & COMMAND_BUSY) && (delay < 10000)) {
      
      total: 0 errors, 1 warnings, 8 lines checked
      
      ./patches/wireless-airo-waitbusy-wont-delay.patch has style problems, please review.  If any of these errors
      are false positives report them to the maintainer, see
      CHECKPATCH in MAINTAINERS.
      
      Please run checkpatch prior to sending patches
      
      Cc: Dan Williams <dcbw@redhat.com>
      Cc: Roel Kluin <roel.kluin@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      b212f337
  21. 17 5月, 2008 2 次提交
  22. 15 5月, 2008 1 次提交
  23. 29 4月, 2008 3 次提交
  24. 29 1月, 2008 6 次提交