Messages in this thread | | | From | "Liu, Chuansheng" <> | Subject | RE: [PATCH] usb: gadget: return the right length in ffs_epfile_io() | Date | Tue, 4 Mar 2014 07:47:58 +0000 |
| |
Hello Balbi,
> -----Original Message----- > From: Felipe Balbi [mailto:balbi@ti.com] > Sent: Tuesday, March 04, 2014 12:30 AM > To: Liu, Chuansheng > Cc: balbi@ti.com; gregkh@linuxfoundation.org; mina86@mina86.com; > linux-usb@vger.kernel.org; linux-kernel@vger.kernel.org; Cohen, David A; > Zhuang, Jin Can; Wang, Yu Y > Subject: Re: [PATCH] usb: gadget: return the right length in ffs_epfile_io() > > Hi, > > On Thu, Feb 27, 2014 at 02:49:31PM +0800, Chuansheng Liu wrote: > > When the request length is aligned to maxpacketsize, sometimes > > the return length ret > the user space requested len. > > > > At that time, we will use min_t(size_t, ret, len) to limit the > > size in case of user data buffer overflow. > > > > But we need return the min_t(size_t, ret, len) to tell the user > > space rightly also. > > > > Signed-off-by: Chuansheng Liu <chuansheng.liu@intel.com>
> please rebase on my "testing/next" branch
Based on your branch "testing/next", I have sent patch v2 with some ack and reviewing, thanks.
[PATCH v2] usb: gadget: return the right length in ffs_epfile_io()
Best Regards Chuansheng
| |