Messages in this thread | | | Date | Thu, 1 Jun 2023 13:58:25 +0300 | From | Tony Lindgren <> | Subject | Re: [PATCH] serial: core: Don't drop port_mutex in serial_core_remove_one_port |
| |
* Steven Price <steven.price@arm.com> [230601 10:56]: > Commit 84a9582fd203 ("serial: core: Start managing serial controllers to > enable runtime PM") required the caller to hold port_mutex rather than > taking it locally. However the mutex_unlock() call wasn't removed > causing the mutex to be dropped unexpectly. Remove the call to > mutex_unlock() (and fix up the early return) to restore correct > behaviour. > > Fixes: 84a9582fd203 ("serial: core: Start managing serial controllers to enable runtime PM")
Reviewed-by: Tony Lindgren <tony@atomide.com>
| |