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 10:43:58 +01:00
2007-04-01 10:10:04 -05:00
2008-01-11 18:22:30 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-02-06 10:41:01 -08:00
2006-09-12 17:12:31 -05:00
2008-02-06 10:41:01 -08:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-25 09:22:12 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-02-06 10:41:01 -08:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2008-02-03 17:28:22 +02:00
2008-02-03 17:28:22 +02:00
2008-01-11 18:27:59 -06:00
2007-05-31 17:30:04 -04:00
2008-02-07 18:04:10 -06:00
2008-01-30 13:03:40 -06:00
2008-01-30 13:14:02 -06:00
2008-02-07 18:04:10 -06:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2006-09-12 17:12:31 -05:00
2008-01-30 13:14:02 -06:00
2008-01-23 13:44:31 -06:00
2008-01-30 13:14:02 -06:00
2007-10-19 11:53:42 -07:00
2008-01-30 13:14:02 -06:00
2008-01-30 13:14:02 -06:00
2007-07-18 11:16:32 -05:00
2008-02-03 17:28:22 +02:00
2008-02-07 18:02:42 -06:00
2008-02-07 18:04:10 -06:00
2008-02-07 19:09:22 -08:00
2007-07-14 19:12:15 -05:00
2008-02-07 18:02:44 -06:00
2008-02-07 18:02:44 -06:00
2008-01-23 11:29:29 -06:00
2007-07-31 10:44:01 -05:00
2008-01-30 13:14:02 -06:00
2007-05-31 17:30:04 -04:00
2008-01-30 13:14:02 -06:00
2006-11-15 16:43:50 -06:00
2008-01-30 13:14:02 -06:00
2007-10-19 23:22:55 +02:00
2008-01-30 13:14:02 -06:00