Skip to content

Commit

Permalink
usb: gadget: udc: atmel: fix uninitialized read in debug printk
Browse files Browse the repository at this point in the history
Fixed commit moved the assignment of 'req', but did not update a
reference in the DBG() call. Use the argument as it was renamed.

Fixes: 5fb694f ("usb: gadget: udc: atmel: fix possible oops when unloading module")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
  • Loading branch information
Michał Mirosław authored and Felipe Balbi committed Jul 9, 2020
1 parent 9706247 commit 30517ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/gadget/udc/atmel_usba_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ static int usba_ep_dequeue(struct usb_ep *_ep, struct usb_request *_req)
u32 status;

DBG(DBG_GADGET | DBG_QUEUE, "ep_dequeue: %s, req %p\n",
ep->ep.name, req);
ep->ep.name, _req);

spin_lock_irqsave(&udc->lock, flags);

Expand Down

0 comments on commit 30517ff

Please sign in to comment.