Skip to content
Commit 822e423e authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Darren Hart (VMware)
Browse files

platform/x86: intel_scu_ipc: Rearrange init sequence



Device pointer is used as a flag that everything is prepared.
Nevertheless the assignment happened quite before and there is a window
when a caller can get weird results or even crashes since not all fields
are initialized yet.

Rearrange initialization sequence in ->probe() to prepare everything
before use.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent ac207ded
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment