Boris Brezillon bdf3a3b59a
spi: Check presence the of ->transfer[_xxx]() before registering a controller
Right now, no checks are done on the presence of a ->transfer[_xxx]()
method, which can lead to a NULL pointer dereference when someone
starts sending something on the bus.

Do the check at registration time and refuse to add the controller if
all ->transfer[_xxx]() pointers are NULL.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2018-04-26 13:53:29 +01:00
..
2017-07-17 12:09:38 +01:00
2018-04-20 17:53:20 +01:00
2016-07-07 11:44:43 +02:00
2017-09-27 10:02:57 -07:00
2017-08-23 17:12:05 +01:00
2017-01-23 18:09:37 +00:00
2018-04-19 18:17:46 +01:00
2017-08-10 15:50:23 +01:00
2017-05-26 12:41:07 +01:00