mxser: access info->MCR under info->slock
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:15:09 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:03 +0000 (13:10 +0200)
commit202acdaa143a75d54dd9eec905c7faca7071c1a8
tree85c42b9aa4bb0bef71aa6011f119a6bfc6778fc3
parent464fbf6c4fc22f13df641bacd85840cfb826ba40
mxser: access info->MCR under info->slock

info->MCR is protected by info->slock all over the code. Extend the lock
in mxser_tiocmget around the info->MCR fetch too.

It likely doesn't change anything, but it's always good to be consistent.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-64-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c