# Re: \[PATCH\] omapfb: Fix potential NULL pointer dereference in kmalloc

- From: Bartlomiej Zolnierkiewicz \<hidden\>
- Date: 2019-04-01 13:01:53 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2019/04/5556522
- Thread: https://ratatoskr.run/linux-omap/2019/03/5529044/t.md

```text

On 03/02/2019 09:40 PM, Aditya Pakki wrote:
> Memory allocated, using kmalloc, for new_compat may fail. This patch
> checks for such an error and prevents potential NULL pointer
> dereference.
> 
> Signed-off-by: Aditya Pakki <redacted>

Patch queued for v5.2, thanks.

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
```
