Skip to content

Commit 7aa34bb

Browse files
krzkgregkh
authored andcommitted
serial: msm: add lock annotation to msm_set_baud_rate()
msm_set_baud_rate() releases and re-acquires the port->lock, thus add lock annotation for Sparse static code checks. Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 03e30f0 commit 7aa34bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/tty/serial/msm_serial.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,6 +1120,7 @@ msm_find_best_baud(struct uart_port *port, unsigned int baud,
11201120

11211121
static int msm_set_baud_rate(struct uart_port *port, unsigned int baud,
11221122
unsigned long *saved_flags)
1123+
__must_hold(&port->lock)
11231124
{
11241125
unsigned int rxstale, watermark, mask;
11251126
struct msm_port *msm_port = to_msm_port(port);

0 commit comments

Comments
 (0)