diff options
| author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-03-04 16:48:14 +0200 |
|---|---|---|
| committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-04-08 16:11:53 +0300 |
| commit | 389b6699a2aa0b457aa69986e9ddf39f3b4030fd (patch) | |
| tree | 51dfe4d9f5d035387c092e70d0fab54ea82d0432 /drivers/hwtracing/stm/policy.c | |
| parent | cbe4a61d1ddc4790d950ca8c33ef79ee68ef5e2b (diff) | |
| download | linux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.tar.gz linux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.tar.bz2 linux-389b6699a2aa0b457aa69986e9ddf39f3b4030fd.zip | |
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>
Diffstat (limited to 'drivers/hwtracing/stm/policy.c')
0 files changed, 0 insertions, 0 deletions
