]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
intel_scu_ipc: Protect dev member assignment on ->remove()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Oct 2015 11:19:48 +0000 (14:19 +0300)
committerDarren Hart <dvhart@linux.intel.com>
Thu, 15 Oct 2015 15:23:30 +0000 (08:23 -0700)
commit9d1d459bf52b4a07a934558e055bb61ad82f44cd
tree9287729f176fa526c3aaadc99d96144d065fa9a9
parent51c58f2b4f24214950d3dc6ab31af7c2532b096f
intel_scu_ipc: Protect dev member assignment on ->remove()

Protect the dev member assignment in ->remove() since user may potentially call
unbind from a sysfs even if the driver is built-in. The latter might be racy
with ongoing SCU communication.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c