Replace memory allocation from kzalloc to kmalloc because
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Jun 2008 17:54:25 +0000 (17:54 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Thu, 19 Jun 2008 17:54:25 +0000 (17:54 +0000)
this memory buffer will be zeroed later on in the code.

Signed-off-by: Dotan Barak <dotanba@gmail.com>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@419 d57e44dd-8a1f-0410-8b47-8ef2f437770f

scst/src/dev_handlers/scst_cdrom.c
scst/src/dev_handlers/scst_modisk.c

index abc7057..1214773 100644 (file)
@@ -90,7 +90,7 @@ int cdrom_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;
index 2ba8ab2..8bd0a2d 100644 (file)
@@ -177,7 +177,7 @@ int modisk_attach(struct scst_device *dev)
                goto out_free_params;
        }
 
-       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;