usb: gadget: udc: fsl: Add missing complete function.
authorMagnus Lilja <lilja.magnus@gmail.com>
Wed, 25 Jan 2017 21:07:59 +0000 (22:07 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 26 Jan 2017 08:50:55 +0000 (10:50 +0200)
commit5528954a1a0c49c6974ef1b8d6eaceff536204d5
tree0e2064cbf8197b47899d61b585c5de2e7ab160e7
parent28781789051ef65ced5dbc40734bfacb5e1e8ea4
usb: gadget: udc: fsl: Add missing complete function.

Commit 304f7e5e1d08 ("usb: gadget: Refactor request completion")
removed check if req->req.complete is non-NULL, resulting in a NULL
pointer derefence and a kernel panic.
This patch adds an empty complete function instead of re-introducing
the req->req.complete check.

Fixes: 304f7e5e1d08 ("usb: gadget: Refactor request completion")

Signed-off-by: Magnus Lilja <lilja.magnus@gmail.com>
Cc: <stable@vger.kernel.org> # 3.18+
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/fsl_udc_core.c