Note of a bug in st-sensors driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux