# Re: \[PATCH\] vt/fbcon: deinitialize resources in visual\_init() after failed memory allocation

- From: Grzegorz Halat \<hidden\>
- Date: 2019-05-16 14:33:53 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2019/05/5599139
- Thread: https://ratatoskr.run/linux-fbdev/2019/04/5581501/t.md

```text
On Fri, 26 Apr 2019 at 16:59, Grzegorz Halat [ref] wrote:
>
> After memory allocation failure vc_allocate() doesn't clean up data
> which has been initialized in visual_init(). In case of fbcon this
> leads to divide-by-0 in fbcon_init() on next open of the same tty.

Hi,
A gentle reminder. Could you please review my patch? I've seen two
crashes caused by this bug.

--
Grzegorz Halat
```
