Patch from Dotan Barak <dotanba@gmail.com>:

Replace memory allocation from kzalloc to kmalloc because
this memory buffer will be zeroed later on in the code.

Signed-off by: Dotan Barak <dotanba@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@405 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-06-12 11:25:38 +00:00
parent f8521e2a68
commit 51b18560a1
+1 -1
View File
@@ -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;