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-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html