* fotg210-udc: Error in type cast in fotg210_in_fifo_handler()
@ 2020-08-31 17:33 lutovinova
0 siblings, 0 replies; only message in thread
From: lutovinova @ 2020-08-31 17:33 UTC (permalink / raw)
To: peter.senna
Cc: martin.donnelly, martyn.welch, a.hajda, narmstrong,
Laurent.pinchart, jonas, jernej.skrabec, airlied, daniel,
dri-devel, linux-kernel, ldv-project, lutovinova
If in fotg210_udc_probe() after initialization
INIT_LIST_HEAD(&ep->queue)
and after a registration of an interrupt handler in fotg210_irq()
fotg210_in_fifo_handler() is calling then in fotg210_in_fifo_handler()
list_entry() tries to get struct fotg210_request from ep->queue.next,
but
after initialization ep->queue.next is from struct fotg210_udc.
Also this problem appears in fotg210_out_fifo_handler().
In fotg210_ep0in() and fotg210_ep0out()
there is checking by list_empty() before calling list_entry ().
Found by Linux Driver Verification project (linuxtesting.org).
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-31 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 17:33 fotg210-udc: Error in type cast in fotg210_in_fifo_handler() lutovinova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®