]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: gadget: change len to size_t on alloc_ep_req()
authorFelipe F. Tonello <eu@felipetonello.com>
Mon, 8 Aug 2016 20:30:05 +0000 (21:30 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:13 +0000 (12:13 +0300)
commit69bb99738b5c6d56d2b1a75db9cbb4d187453c1a
tree6a40345e6239a2b7583cf7532e135202dc346385
parent16b114a6d7973cf027e4c2b23eae1076eaf98c25
usb: gadget: change len to size_t on alloc_ep_req()

Length of buffers should be of type size_t whenever possible. Altough
recommended, this change has no real practical change, unless a driver has a
uses a huge or negative buffer size - it might help find these bugs.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/u_f.c
drivers/usb/gadget/u_f.h