]> git.baikalelectronics.ru Git - kernel.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)
commit2353352f0726d478d46eadbb48880482cf1e7330
tree9287729f176fa526c3aaadc99d96144d065fa9a9
parent4625eaf3b93ad315f8c5d1c8938625703b2b372a
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