lkml.org 
[lkml]   [2018]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: 答复: Re: [PATCH] tty: max3100: Fix oop s while 'cat/proc/tty/driver/ttyMAX'
From
Date
On 09/13/2018, 08:32 AM, chen.lin5@zte.com.cn wrote:
>        
>
> but 'get_mctrl' is already protected by  the upper layer by spin lock,
> so, will the races happen?
>
>
> for example: in /drivers/tty/serial/serial_core.c 
>
>               spin_lock_irq(&uport->lock);
>
>               result |= uport->ops->get_mctrl(uport);
>
>               spin_unlock_irq(&uport->lock);

Right, but creation and destroy of the workqueue is not locked as far as
I can see. Am I missing something?

thanks,.
--
js
suse labs

\
 
 \ /
  Last update: 2018-09-14 13:28    [W:0.028 / U:5.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site