From: vlnb Date: Thu, 12 Jun 2008 11:25:38 +0000 (+0000) Subject: Patch from Dotan Barak : X-Git-Url: http://git.etherboot.org/mirror/scst/.git/commitdiff_plain/15a9b00d35a7c31a216811ef1c70eb00ffc2e407 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: https://scst.svn.sourceforge.net/svnroot/scst/trunk@405 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- diff --git a/scst/src/dev_handlers/scst_disk.c b/scst/src/dev_handlers/scst_disk.c index 435feaf..cb5d081 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;