diff options
| author | Christian Gromm <[email protected]> | 2018-08-13 15:02:28 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2018-08-27 19:51:49 +0200 |
| commit | f0b4a22a48481824e124f633bbe5d3e884fc8e36 (patch) | |
| tree | 650bb3cd4f3af2d39c0a9b3c3210e3cef18a05bb /tools/perf/scripts/python | |
| parent | 23c41ca6173da88c4acff1e353af654085ee3a0d (diff) | |
staging: most: register channel device after init of struct members
This patch moves the call to device_register to the end of the channel
initialization section that the devcie belongs to. It is needed to
avoid NULL pointer dereferences once the device is registered with
sysfs.
Signed-off-by: Christian Gromm <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions