[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150108170236.GI31926@saruman>
Date: Thu, 8 Jan 2015 11:02:36 -0600
From: Felipe Balbi <balbi@...com>
To: Michal Nazarewicz <mina86@...a86.com>
CC: Rohith Seelaboyina <rseelaboyina@...dia.com>, <balbi@...com>,
<gregkh@...uxfoundation.org>, <r.baldyga@...sung.com>,
<andrzej.p@...sung.com>, <joe@...ches.com>,
<linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3] usb: gadget: ffs: Fix sparse error
Hi,
On Wed, Dec 24, 2014 at 03:23:07PM +0100, Michal Nazarewicz wrote:
> On Wed, Dec 24 2014, Rohith Seelaboyina wrote:
> > 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
> > allocation is successful and return -ENOMEM on failure.
> >
> > Signed-off-by: Rohith Seelaboyina <rseelaboyina@...dia.com>
>
> This has already been addressed in a way that does not require dynamic
> allocation: <https://lkml.org/lkml/2014/9/10/513>. I'd rather patch
> attached at the end would be applied.
can you send below as a proper patch ?
thanks
--
balbi
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists