1. 17 Nov, 2003 2 commits
    • James Bottomley's avatar
      Add missing .module initialisation to lasi700 and sim710 · 9bfbdf16
      James Bottomley authored
      This bug prevents their module refcounts being increased by opending upper layer drivers
      Thus they can be removed at any time and panic the system.
      9bfbdf16
    • Alan Stern's avatar
      [PATCH] Off-by-one bug in user page calculations for Direct I/O · 84566fc7
      Alan Stern authored
      On Sun, 16 Nov 2003, Kai Makisara wrote:
      > On Sun, 16 Nov 2003, Alan Stern wrote:
      >
      > > The page count calculations in drivers/scsi/st.c (and copied in sg.c) are
      > > wrong.  The code says:
      > >
      > > 	nr_pages = ((uaddr & ~PAGE_MASK) + count - 1 + ~PAGE_MASK) >>
      > > 		PAGE_SHIFT;
      > >
      > > That will compute an incorrect value if the user's buffer happens to end
      > > on the first byte of a new page.  Example:  Suppose uaddr starts right on
      >
      > Your analysis is correct and this is a bug. Could you send the fix to
      > James Bottomley for inclusion into the scsi-bugfixes-2.6 bk tree (at least
      > the st part).
      >
      > Thanks for noticing the bug.
      >
      > 	Kai
      >
      > P.S. I usually write these ((base ~ mask) + count + PAGE_SIZE - 1) >>
      > PAGE_SHIFT. I don't know why I did it like this here. One should never try
      > to be clever and do something in a new way or copy something that does not
      > match one's own standard ways of doing things ;-)
      
      On Mon, 17 Nov 2003, Douglas Gilbert wrote:
      > Alan,
      > ... and the sg part as well ..
      >
      > > Thanks for noticing the bug.
      >
      > dito
      >
      > Doug Gilbert
      84566fc7
  2. 15 Nov, 2003 1 commit
    • Christoph Hellwig's avatar
      [PATCH] scsi_device refcounting and list lockdown · e16ee618
      Christoph Hellwig authored
        - shost->my_devices is gone and replaced by ->__devices, which is not
          exposed to drivers and locked by the host lock.  Use the exported
          helpers that do proper refcounting to access it.
        - sdev->access_count is gone as a side-effect, the sg interfaces
          to export it now return 1 for a present scsi_device.
        - drivers/scsi/host.h is empty now.
      e16ee618
  3. 13 Nov, 2003 1 commit
  4. 12 Nov, 2003 8 commits
  5. 11 Nov, 2003 16 commits
  6. 10 Nov, 2003 12 commits