]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: displayport: Fix a potential race during registration
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 11 Mar 2020 13:00:06 +0000 (16:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 08:34:52 +0000 (09:34 +0100)
commit7e04a73859acdb1a8e18820f7fa76250138478f2
treed6bca49f9e270eafe981c38cba7c070611d12fcc
parentbf2d835650414d06e8a83e05327da510fedd2055
usb: typec: ucsi: displayport: Fix a potential race during registration

Locking the connector in ucsi_register_displayport() to make
sure that nothing can access the displayport alternate mode
before the function has finished and the alternate mode is
actually ready.

Fixes: 31960f8d1990 ("usb: typec: ucsi: Support for DisplayPort alt mode")
Cc: stable@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200311130006.41288-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/displayport.c