1 Oct 2005 09:44
[PATCH] [IDE] kmalloc + memset -> kzalloc conversion
Deepak Saxena <dsaxena <at> plexity.net>
2005-10-01 07:44:15 GMT
2005-10-01 07:44:15 GMT
Signed-off-by: Deepak Saxena <dsaxena <at> plexity.net>
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
<at> <at> -3449,7 +3449,7 <at> <at> static int ide_cd_probe(struct device *d
printk(KERN_INFO "ide-cd: passing drive %s to ide-scsi emulation.\n", drive->name);
goto failed;
}
- info = (struct cdrom_info *) kmalloc (sizeof (struct cdrom_info), GFP_KERNEL);
+ info = (struct cdrom_info *) kzalloc (sizeof (struct cdrom_info), GFP_KERNEL);
if (info == NULL) {
printk(KERN_ERR "%s: Can't allocate a cdrom structure\n", drive->name);
goto failed;
<at> <at> -3463,8 +3463,6 <at> <at> static int ide_cd_probe(struct device *d
ide_register_subdriver(drive, &ide_cdrom_driver);
- memset(info, 0, sizeof (struct cdrom_info));
-
kref_init(&info->kref);
info->drive = drive;
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c
--- a/drivers/ide/ide-disk.c
+++ b/drivers/ide/ide-disk.c
<at> <at> -1215,7 +1215,7 <at> <at> static int ide_disk_probe(struct device
if (drive->media != ide_disk)
goto failed;
(Continue reading)
Signed-off-by: Tejun Heo <htejun <at> gmail.com>
diff --git a/Documentation/DocBook/libata.tmpl b/Documentation/DocBook/libata.tmpl
--- a/Documentation/DocBook/libata.tmpl
+++ b/Documentation/DocBook/libata.tmpl
<at> <at> -787,6 +787,722 <at> <at> and other resources, etc.
!Idrivers/scsi/libata-scsi.c
</chapter>
+ <chapter id="ataExceptions">
+ <title>ATA errors & exceptions</title>
+
+ <para>
+ This chapter tries to identify what error/exception conditions exist
+ for ATA/ATAPI devices and describe how they should be handled in
+ implementation-neutral way.
+ </para>
+
+ <para>
RSS Feed