[PATCH weston 14/21] compositor-fbdev: MAP_FAILED is not NULL

Daniel Stone daniel at fooishbar.org
Fri Sep 22 16:44:31 UTC 2017


On 22 September 2017 at 07:31, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> Fix the assumption that MAP_FAILED would be equal to NULL. It is not.
> Set 'fb' explicitly to NULL on mmap failure so that comparisons to NULL
> would produce the expected result.
>
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Reviewed-by: Daniel Stone <daniels at collabora.com>


More information about the wayland-devel mailing list