Re: [PATCH v2] usb: gadget: ffs: Fix sparse error

2014-12-24 Thread Joe Perches
On Wed, 2014-12-24 at 14:48 +0530, Rohith Seelaboyina wrote: > Dynamic memory allocation through kcalloc is more safer > than declaring variable array size, Fix this error by > using kcalloc for memory allocation, Check if memory > allocation is successful and return -ENOMEM on failure. > > Signed

[PATCH v2] usb: gadget: ffs: Fix sparse error

2014-12-24 Thread Rohith Seelaboyina
This patch fixes the sparse error in functionfs driver. drivers/usb/gadget/function/f_fs.c:400:44: error: bad constant experssion. Dynamic memory allocation through kcalloc is more safer than declaring variable array size, Fix this error by using kcalloc for memory allocation, Check if memory all