public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* pn533 driver crash
@ 2016-07-05 13:56 Nikita Yushchenko
  0 siblings, 0 replies; only message in thread
From: Nikita Yushchenko @ 2016-07-05 13:56 UTC (permalink / raw)
  To: Lauro Ramos Venancio, Aloisio Almeida Jr, Waldemar Rymarkiewicz,
	Michael Thalmeier, Samuel Ortiz
  Cc: arusalin, linux-kernel@vger.kernel.org

Hi

We have ported pn533 driver from current upstream kernel to vendor
kernel that our target hardware runs, and are having crashes.

Analysis shows that same is possible in upstream kernel as well.

commit b31d5103c message states that pn533_recv_frame() can be entered
with dev->cmd not set.  And in this case, change done by that commit
jumps directly to queue_work().

However, work routine pn533_wq_cmd_complete() unconditionally calls
pn533_send_async_complete(), and that unconditionally dereferences
dev->cmd. Thus crash.

Not yet sure how to fix that properly...

WBR,
Nikita Yushchenko

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-05 14:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-05 13:56 pn533 driver crash Nikita Yushchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox