From 51b18560a10b7024cc348e8b5455142346f9fab6 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 12 Jun 2008 11:25:38 +0000 Subject: [PATCH] Patch from Dotan Barak : Replace memory allocation from kzalloc to kmalloc because this memory buffer will be zeroed later on in the code. Signed-off by: Dotan Barak git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@405 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/dev_handlers/scst_disk.c b/scst/src/dev_handlers/scst_disk.c index 435feaffd..cb5d08168 100644 --- a/scst/src/dev_handlers/scst_disk.c +++ b/scst/src/dev_handlers/scst_disk.c @@ -165,7 +165,7 @@ int disk_attach(struct scst_device *dev) goto out; } - buffer = kzalloc(buffer_size, GFP_KERNEL); + buffer = kmalloc(buffer_size, GFP_KERNEL); if (!buffer) { TRACE(TRACE_OUT_OF_MEM, "%s", "Memory allocation failure"); res = -ENOMEM;