1. 17 6月, 2010 1 次提交
  2. 01 5月, 2010 1 次提交
  3. 28 3月, 2010 1 次提交
    • H
      [SCSI] advansys: fix regression with request_firmware change · cf747445
      Herton Ronaldo Krzesinski 提交于
      On newer kernels users of advansys module are reporting system hang when
      trying to load it without firmware files present. After looking closely
      at description on https://qa.mandriva.com/show_bug.cgi?id=53220, I think
      this is related to commit "[SCSI] advansys: use request_firmware". The
      problem is that after switch to request_firmware, asc_dvc->err_code
      isn't being set when firmware files aren't found or loading fails.
      
      err_code is used by the driver to judge if there was a fatal error or
      not, as can be seen for example on advansys_board_found, which will only
      return -ENODEV when err_code is set. Because err_code isn't being set
      when request_firmware fails, this is a change of behaviour of the code
      before request_firmware addition, making it continue to load and it
      fails later as the firmware wasn't really loaded.
      Signed-off-by: NHerton Ronaldo Krzesinski <herton@mandriva.com.br>
      Signed-off-by: NJames Bottomley <James.Bottomley@suse.de>
      cf747445
  4. 05 12月, 2009 1 次提交
  5. 03 4月, 2009 1 次提交
  6. 03 1月, 2009 1 次提交
  7. 30 12月, 2008 1 次提交
  8. 01 12月, 2008 1 次提交
    • A
      advansys fix on ISA-less configs · 30037818
      Al Viro 提交于
      The code
      
              if (shost->dma_channel != NO_ISA_DMA)
                      free_dma(shost->dma_channel);
      
      in there is triggerable only if we have CONFIG_ISA (we only set ->dma_channel to
      something other than NO_ISA_DMA under #ifdef CONFIG_ISA).  OTOH, free_dma() is
      not guaranteed to be there in absense of CONFIG_ISA.  IOW, driver runs into
      undefined symbols on PCI-but-not-ISA configs (e.g. on frv) and it's a false
      positive.
      
      Fix: put the entire if () under #ifdef CONFIG_ISA; behaviour doesn't change and
      dependency on free_dma() disappears for !CONFIG_ISA.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      30037818
  9. 27 7月, 2008 1 次提交
  10. 08 3月, 2008 1 次提交
  11. 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
  12. 08 2月, 2008 1 次提交
  13. 24 1月, 2008 1 次提交
  14. 15 1月, 2008 1 次提交
  15. 13 10月, 2007 26 次提交