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

2017-09-22 Thread Daniel Stone
On 22 September 2017 at 07:31, Pekka Paalanen 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 Reviewed-by: Daniel Stone

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

2017-09-22 Thread Pekka Paalanen
From: Pekka Paalanen 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 --- libweston/compositor-fbdev.c | 1 + 1 file changed, 1 insertio