1. 12 2月, 2008 1 次提交
    • F
      [SCSI] advansys: fix overrun_buf aligned bug · 7d5d408c
      FUJITA Tomonori 提交于
      struct asc_dvc_var needs overrun buffer to be placed on an 8 byte
      boundary. advansys defines struct asc_dvc_var:
      
      struct asc_dvc_var {
      	...
      	uchar overrun_buf[ASC_OVERRUN_BSIZE] __aligned(8);
      
      The problem is that struct asc_dvc_var is placed on
      shost->hostdata. So if the hostdata is not on an 8 byte boundary, the
      advansys crashes. The hostdata is placed on a sizeof(unsigned long)
      boundary so the 8 byte boundary is not garanteed with x86_32.
      
      With 2.6.23 and 2.6.24, the hostdata is on an 8 byte boundary by
      chance, but with the current git, it's not.
      
      This patch removes overrun_buf static array and use kzalloc.
      Signed-off-by: NFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      7d5d408c
  2. 08 2月, 2008 1 次提交
  3. 24 1月, 2008 1 次提交
  4. 15 1月, 2008 1 次提交
  5. 13 10月, 2007 36 次提交