[PATCH 05/17] hpsa: Allocate the correct amount of extra space forthe scsi host

From: Stephen M. Cameron
Date: Wed Nov 11 2009 - 11:53:10 EST


hpsa: Allocate the correct amount of extra space for the scsi host

Signed-off-by: Stephen M. Cameron <scameron@xxxxxxxxxxxxxxxxxx>
---

drivers/scsi/hpsa.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index e402155..85be09c 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -890,7 +890,7 @@ static int hpsa_scsi_detect(struct ctlr_info *h)
struct Scsi_Host *sh;
int error;

- sh = scsi_host_alloc(&hpsa_driver_template, sizeof(*h));
+ sh = scsi_host_alloc(&hpsa_driver_template, sizeof(h));
if (sh == NULL)
goto fail;


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/