]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: gadget: fastboot: Request status and length check in rx handler
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 4 Jul 2015 14:46:15 +0000 (16:46 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:00 +0000 (13:49 +0200)
commit4e879a6ddb6b315f43486e565cad1b244e4f2061
tree7c88760a12eeb0b1e3502de09caefb89db3b6e50
parent844a59aa81b2a2ec8161dfe99487ea391994d1c1
usb: gadget: fastboot: Request status and length check in rx handler

This avoids handling requests that have an error status or no data.
In particular, this avoids showing unnecessary error messages when the USB
gadget gets disconnected (e.g. with fastboot continue) and the fastboot USB
gadget driver sends an error back to the host (that has disconnected already).

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
drivers/usb/gadget/f_fastboot.c