Files
linux/drivers
FUJITA Tomonori 7d5d408c77 [SCSI] advansys: fix overrun_buf aligned bug
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: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-02-11 10:20:53 -06:00
..
…
…
2008-02-09 03:33:40 -05:00
2008-02-05 09:44:23 -08:00
…
2008-02-06 10:41:15 -08:00
…
2008-02-07 20:39:44 -05:00
2008-02-09 10:46:40 +01:00
2008-02-08 14:32:37 -08:00
2008-02-08 09:22:38 -08:00
…
2008-02-08 02:11:39 +00:00
2008-02-03 17:21:01 +02:00
2008-02-07 08:42:23 -08:00
2008-02-09 10:46:40 +01:00
2008-02-09 23:27:01 -08:00
…
…
…
2008-02-03 17:30:25 +02:00
…
2008-02-06 10:41:07 -08:00
…