Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c000c43cf12090972fad0fbb621d78c2100d0373
Commit:     c000c43cf12090972fad0fbb621d78c2100d0373
Parent:     159e36fe996411a4a05added6b7b20b1c4490ebb
Author:     FUJITA Tomonori <[EMAIL PROTECTED]>
AuthorDate: Wed Aug 1 08:40:27 2007 +0900
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Wed Aug 1 08:51:32 2007 -0500

    [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 <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to