# Re: \[PATCH v3 1/3\] virtio\_console: Fix locking of vtermno.

- From: Rusty Russell \<hidden\>
- Date: 2011-11-11 04:28:21 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2011/11/3786011
- Thread: https://ratatoskr.run/linuxppc-dev/2011/11/3784379/t.md

```text
On Tue, 08 Nov 2011 13:44:58 -0800, Miche Baker-Harvey [ref] wrote:
> Some modifications of vtermno were not done under the spinlock.
> 
> Moved assignment from vtermno and increment of vtermno together,
> putting both under the spinlock.  Revert vtermno on failure.
> 
> Signed-off-by: Miche Baker-Harvey <redacted>

Does it matter?  It's normal not to lock in a function called
"init_XXX", since it's not exposed yet.

Or is it?

Thanks,
Rusty.
```
