android_kernel_oneplus_msm8998/drivers/hwtracing
Alexander Shishkin 134bbd594d stm class: Fix stm device initialization order
Currently, stm_register_device() makes the device visible and then
proceeds to initializing spinlocks and other properties, which leaves
a window when the device can already be opened but is not yet fully
operational.

Fix this by reversing the initialization order.

Reported-by: Alan Cox <alan.cox@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Laurent Fert <laurent.fert@intel.com>
(cherry picked from commit 389b6699a2aa0b457aa69986e9ddf39f3b4030fd)
2016-06-01 15:42:52 -06:00
..
coresight drivers/hwtracing: make coresight-etm-perf.c explicitly non-modular 2016-06-01 15:31:29 -06:00
intel_th intel_th: Check for NULL instead of ERR_PTR 2015-10-16 23:25:48 -07:00
stm stm class: Fix stm device initialization order 2016-06-01 15:42:52 -06:00