# Re: \[PATCH 3/4\] video: fbdev: pxafb: handle errors from pxafb\_init\_fbinfo() correctly

- From: Robert Jarzmik \<robert.jarzmik@free.fr\>
- Date: 2018-06-25 22:02:56 
- List: linux-fbdev
- Page: https://ratatoskr.run/linux-fbdev/2018/06/13466856
- Thread: https://ratatoskr.run/linux-fbdev/2018/06/13466855/t.md

```text
Daniel Mack [ref] writes:

> pxafb_init_fbinfo() can not only report errors caused by failed
> allocations but also when the clock can't be found.
>
> To fix this, return an error pointer instead of NULL in case of errors,
> and up-chain the result.
>
> Signed-off-by: Daniel Mack <daniel@zonque.org>
Reviewed-by: Robert Jarzmik <robert.jarzmik@free.fr>

Cheers.

--
Robert
```
