* Note of a bug in st-sensors driver.
@ 2016-05-22 16:34 Jonathan Cameron
0 siblings, 0 replies; only message in thread
From: Jonathan Cameron @ 2016-05-22 16:34 UTC (permalink / raw)
To: linux-iio@vger.kernel.org, Denis CIOCCA, Linus Walleij,
Crestez Dan Leonard
Hi All,
This is more of a brief note of a problem than anything else.
Not sure when I'll get a chance to address it (if anyone else wants to clean
it up in the meantime that would be great)
If no platform data supplied then default platform data is assigned
directly to the spi or i2c dev. This is a very bad idea.
When we remove and reprobe the driver, we now have a platform data pointer
pointing somewhere, unfortunately that may not be a location with anything in
it. Result is a crash...
Fix is to have a separate local copy of the platform data pointer and don't
go messing with the ones for the spi / i2c devs. They don't belong to the
i2c driver so we should not be touching them!
Jonathan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-22 16:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-22 16:34 Note of a bug in st-sensors driver Jonathan Cameron
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.