# Re: \[PATCH v2\] video: fbdev: smscufx: Fix use-after-free in ufx\_ops\_open()

- From: Hyunwoo Kim \<hidden\>
- Date: 2022-09-25 16:03:28 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2022/09/9225019
- Thread: https://ratatoskr.run/linux-fbdev/2022/09/9225021/t.md

```text
On Sun, Sep 25, 2022 at 03:09:47PM +0200, Helge Deller wrote:
> it seems user and console don't need to be protected by the lock.
> Does it make sense to move them out of the lock?

you're right. Since both variables are not related to a race condition, 
it is better to get them out of the lock.

I will submit a v3 patch.


Best Regards,
Hyunwoo Kim.
```
