summaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss_scsi.c
diff options
context:
space:
mode:
authorEric Sesterhenn <snakebyte@gmx.de>2006-03-08 11:21:52 +0100
committerJens Axboe <axboe@nelson.home.kernel.dk>2006-03-27 09:29:02 +0200
commit06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a (patch)
tree67eb8baf5abbd0776d7fe1c13106c6c9bfe10750 /drivers/block/cciss_scsi.c
parent28832e83379afd0b0e83b78ac317290c79ebd496 (diff)
downloadop-kernel-dev-06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a.zip
op-kernel-dev-06ff37ffb4ba8bcbda0e9d19c712c954ef7b8a0a.tar.gz
[PATCH] kzalloc() conversion in drivers/block
this patch converts drivers/block to kzalloc usage. Compile tested with allyesconfig. Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de> Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/block/cciss_scsi.c')
-rw-r--r--drivers/block/cciss_scsi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c
index 0e66e90..597c007 100644
--- a/drivers/block/cciss_scsi.c
+++ b/drivers/block/cciss_scsi.c
@@ -1027,12 +1027,11 @@ cciss_update_non_disk_devices(int cntl_num, int hostno)
int i;
c = (ctlr_info_t *) hba[cntl_num];
- ld_buff = kmalloc(reportlunsize, GFP_KERNEL);
+ ld_buff = kzalloc(reportlunsize, GFP_KERNEL);
if (ld_buff == NULL) {
printk(KERN_ERR "cciss: out of memory\n");
return;
}
- memset(ld_buff, 0, reportlunsize);
inq_buff = kmalloc(OBDR_TAPE_INQ_SIZE, GFP_KERNEL);
if (inq_buff == NULL) {
printk(KERN_ERR "cciss: out of memory\n");
OpenPOWER on IntegriCloud