Re: [PATCH] staging: lustre: llite: Fix variable length array warning

2017-05-06 Thread Guru Das Srinagesh
On Fri, May 05, 2017 at 01:52:36AM -0700, Joe Perches wrote: > On Thu, 2017-05-04 at 23:41 -0700, Guru Das Srinagesh wrote: > > Fix sparse warning "warning: Variable length array is used." by using > > kmalloc_array to allocate the required amount of memory instead and > > kfree to deallocate memor

Re: [PATCH] staging: lustre: llite: Fix variable length array warning

2017-05-05 Thread Joe Perches
On Thu, 2017-05-04 at 23:41 -0700, Guru Das Srinagesh wrote: > Fix sparse warning "warning: Variable length array is used." by using > kmalloc_array to allocate the required amount of memory instead and > kfree to deallocate memory after use. [] > diff --git a/drivers/staging/lustre/lustre/llite/xa

[PATCH] staging: lustre: llite: Fix variable length array warning

2017-05-04 Thread Guru Das Srinagesh
Fix sparse warning "warning: Variable length array is used." by using kmalloc_array to allocate the required amount of memory instead and kfree to deallocate memory after use. Signed-off-by: Guru Das Srinagesh --- drivers/staging/lustre/lustre/llite/xattr.c | 17 + 1 file changed