[PATCH AUTOSEL 4.18 77/88] drivers/base: stop new probing during shutdown

2018-09-06 Thread Sasha Levin
From: Pingfan Liu [ Upstream commit 3297c8fc65af5d40501ea7cddff1b195cae57e4e ] There is a race window in device_shutdown(), which may cause -1. parent device shut down before child or -2. no shutdown on a new probing device. For 1st, taking the following scenario: device_shutdown

[PATCH AUTOSEL 4.18 77/88] drivers/base: stop new probing during shutdown

2018-09-06 Thread Sasha Levin
From: Pingfan Liu [ Upstream commit 3297c8fc65af5d40501ea7cddff1b195cae57e4e ] There is a race window in device_shutdown(), which may cause -1. parent device shut down before child or -2. no shutdown on a new probing device. For 1st, taking the following scenario: device_shutdown