diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-08-01 01:40:27 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 15:51:32 +0200 |
commit | c000c43cf12090972fad0fbb621d78c2100d0373 (patch) | |
tree | bce550ea244314ffbcc46a8ddf6f7f6a9b1f21d7 | |
parent | [SCSI] mptsas: add SMP passthrough support via bsg (diff) | |
download | linux-c000c43cf12090972fad0fbb621d78c2100d0373.tar.xz linux-c000c43cf12090972fad0fbb621d78c2100d0373.zip |
[SCSI] initialize shost_data to zero
It's better to initialize host->shost_data to zero like
target->starget_data and device->sdev_data.
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/scsi/hosts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/hosts.c b/drivers/scsi/hosts.c index bd8e7f323c69..96bc31266c98 100644 --- a/drivers/scsi/hosts.c +++ b/drivers/scsi/hosts.c @@ -220,7 +220,7 @@ int scsi_add_host(struct Scsi_Host *shost, struct device *dev) get_device(&shost->shost_gendev); if (shost->transportt->host_size && - (shost->shost_data = kmalloc(shost->transportt->host_size, + (shost->shost_data = kzalloc(shost->transportt->host_size, GFP_KERNEL)) == NULL) goto out_del_classdev; |