commit | 82b8ddf9d9640b23237a1799b2912641082ad2d1 | [log] [tgz] |
---|---|---|
author | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Wed Sep 13 11:58:00 2017 +0300 |
committer | Pekka Paalanen <pekka.paalanen@collabora.co.uk> | Mon Sep 25 12:07:38 2017 +0300 |
tree | 3ab93af0e6ed105bf7fa39138876fe307d8539cd | |
parent | ffa42ffdaa006f73758cf3e9c6f9c80aff2ecbff [diff] |
compositor-fbdev: MAP_FAILED is not NULL 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@collabora.co.uk> Reviewed-by: Daniel Stone <daniels@collabora.com>