]> git.baikalelectronics.ru Git - kernel.git/commit
serial: core: Document lock requirement for UPF_* flags updates
authorPeter Hurley <peter@hurleysoftware.com>
Tue, 2 Sep 2014 21:39:19 +0000 (17:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 23:23:36 +0000 (16:23 -0700)
commit6f6d738790d10d580fc8c8da5f6728572889ae7d
treefd8cfdd636e4bd27bcf6c3af31da41149d3139e4
parent18e76e8e4653823a2a6428674becc7fa6116e27c
serial: core: Document lock requirement for UPF_* flags updates

The flags field of struct uart_port can only be safely modified
if the port mutex is held; no other lock prevents concurrent
changes from corrupting the field.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/serial_core.h