qcacmn: Use vzalloc instead of vmalloc

Currently driver is using vmalloc to allocate the memory
inside dbglog_block_read api and this buffer is copied to
userspace buffer which may lead to use of uninitialized
buffer.

To avoid above issue use vzalloc to allocated the buffer
which initializes the memory to zero.

Change-Id: Iebc530b000c908231ef8718e79054801d294dd8f
CRs-Fixed: 2470385
This commit is contained in:
Ashish Kumar Dhanotiya
2019-06-14 14:38:29 +05:30
committed by nshrivas
vanhempi e1ffcf089e
commit bf9d06fab1

Näytä tiedosto

@@ -4060,7 +4060,7 @@ static ssize_t dbglog_block_read(struct file *file,
char *buf;
int ret;
buf = vmalloc(count);
buf = vzalloc(count);
if (!buf)
return -ENOMEM;