linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix NULL pointer dereference
@ 2015-04-09 15:03 Pelle Nilsson
       [not found] ` <1428591822-24279-1-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Pelle Nilsson @ 2015-04-09 15:03 UTC (permalink / raw)
  To: broonie-DgEjT+Ai2ygdnm+yROfE0A
  Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	nios2-dev-g9ZBwUv/Ih/yUk5EbOjzuce+I+R0W71w

As I reported earlier, spi-altera driver is broken and causes a kernel
panic due to a NULL pointer dereference during first SPI
transaction. On a closer look, it turned out that the setup_transfer()
bitbang callback is mandatory when the txrx_bufs() callback is
present. It was therefore an error to remove it in commit
30af9b558a56. This patch simply adds back an empty implementation of
the callback.

Pelle Nilsson (1):
  spi: altera: Add empty implementation of setup_transfer callback

 drivers/spi/spi-altera.c | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2015-04-18 11:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-09 15:03 [PATCH 0/1] Fix NULL pointer dereference Pelle Nilsson
     [not found] ` <1428591822-24279-1-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-09 15:03   ` [PATCH 1/1] spi: altera: Add empty implementation of setup_transfer callback Pelle Nilsson
     [not found]     ` <1428591822-24279-2-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-09 15:40       ` Mark Brown
     [not found]         ` <20150409154045.GZ6023-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-04-09 15:50           ` Pelle Nilsson
     [not found]             ` <55269FDC.8040306-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-09 16:10               ` Mark Brown
2015-04-13  9:45                 ` Pelle Nilsson
     [not found]                   ` <552B9045.4040709-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-13 10:08                     ` [PATCH] spi: bitbang: Make setup_transfer callback optional Pelle Nilsson
     [not found]                       ` <1428919685-14190-1-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-14  0:22                         ` [Nios2-dev] " Ezequiel Garcia
2015-04-14 13:40                         ` [PATCH v2] spi: bitbang: Make setup_transfer() " Pelle Nilsson
     [not found]                           ` <1429018817-18117-1-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-14 15:36                             ` Ezequiel Garcia
2015-04-18 11:00                             ` Mark Brown
2015-04-09 15:26   ` [PATCH 0/1] Fix NULL pointer dereference Mark Brown
2015-04-09 15:54   ` [PATCH v2] spi: altera: Add empty implementation of setup_transfer callback Pelle Nilsson
     [not found]     ` <1428594853-24640-1-git-send-email-per.nilsson-5TWeZ6kPplYAvxtiuMwx3w@public.gmane.org>
2015-04-09 16:23       ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).