From: lutovinova@ispras.ru
To: peter.senna@gmail.com
Cc: martin.donnelly@ge.com, martyn.welch@collabora.co.uk,
a.hajda@samsung.com, narmstrong@baylibre.com,
Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se,
jernej.skrabec@siol.net, airlied@linux.ie, daniel@ffwll.ch,
dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org,
ldv-project@linuxtesting.org, lutovinova@ispras.ru
Subject: fotg210-udc: Error in type cast in fotg210_in_fifo_handler()
Date: Mon, 31 Aug 2020 20:33:09 +0300 [thread overview]
Message-ID: <b8b01720ee550840c7c0fc39d3e9e5f9@ispras.ru> (raw)
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).
reply other threads:[~2020-08-31 17:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b8b01720ee550840c7c0fc39d3e9e5f9@ispras.ru \
--to=lutovinova@ispras.ru \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=a.hajda@samsung.com \
--cc=airlied@linux.ie \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@siol.net \
--cc=jonas@kwiboo.se \
--cc=ldv-project@linuxtesting.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.donnelly@ge.com \
--cc=martyn.welch@collabora.co.uk \
--cc=narmstrong@baylibre.com \
--cc=peter.senna@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®