diff options
author | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2007-08-01 08:40:27 +0900 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 08:51:32 -0500 |
commit | c000c43cf12090972fad0fbb621d78c2100d0373 (patch) | |
tree | bce550ea244314ffbcc46a8ddf6f7f6a9b1f21d7 /drivers/scsi | |
parent | 159e36fe996411a4a05added6b7b20b1c4490ebb (diff) | |
download | op-kernel-dev-c000c43cf12090972fad0fbb621d78c2100d0373.zip op-kernel-dev-c000c43cf12090972fad0fbb621d78c2100d0373.tar.gz |
[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>
Diffstat (limited to 'drivers/scsi')
-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 bd8e7f3..96bc312 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; |