1. 17 Nov, 2005 3 commits
    • Constantine Gavrilov's avatar
      [PATCH] x86: fix sigaddset() inline asm memory constraint · b7fd1edd
      Constantine Gavrilov authored
      Due to incomplete memory constraints, gcc would miscompile code with
      sigaddset on i386 if sig arg was const.
      
      A quote form Jakub to make the issue clear:
      
       "You need either
      	__asm__("btsl %1,%0" : "+m"(*set) : "Ir"(_sig-1) : "cc");
        or
      	__asm__("btsl %1,%0" : "=m"(*set) : "Ir"(_sig-1), "m"(*set) : "cc");
        because the btsl instruction doesn't just set the memory to some
        value, but needs to read its previous content as well.  If you don't
        tell that fact to GCC, GCC is of course free to optimize as if the asm
        was just setting the value and not depended on the previous value."
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      b7fd1edd
    • Zhu Yi's avatar
      [PATCH] ipw2200: fix error log offset calculation · 3b26b110
      Zhu Yi authored
      This fixes a slab corruption issue in the ipw2200 driver: it essentially
      multiplied the error log number _twice_ by the size of the error element
      entry (once explicitly in the code, and once implicitly as part of the
      regular pointer arithmetic).
      
      Cc: Henrik Brix Andersen <brix@gentoo.org>
      Cc: Bernard Blackham <bernard@blackham.com.au>
      Cc: Zilvinas Valinskas <zilvinas@gemtek.lt>
      Cc: Pekka Enberg <penberg@cs.helsinki.fi>
      Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      --
      3b26b110
    • Pekka Enberg's avatar
      [PATCH] ipw2200: disallow direct scanning when device is down · efb3442c
      Pekka Enberg authored
      The function ipw_request_direct_scan() should bail out when the device
      is down.  This fixes a lockup caused by wpa_supplicant triggering
      ipw_request_direct_scan() while the driver was in a middle of a reset
      due to firmware errors.
      
      Thanks to Zilvinas Valinskas for reporting the bug and helping me
      debug it.
      Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
      Acked-by: default avatarZhu Yi <yi.zhu@intel.com>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      efb3442c
  2. 16 Nov, 2005 21 commits
  3. 15 Nov, 2005 16 commits