[PATCH 5/5] Weston: fix drmModeRmFB
ae at op5.se
Sat Mar 31 07:00:59 PDT 2012
On 03/31/2012 12:58 PM, Martin Minarik wrote:
> fb_id is unsigned integer, we are assigning -1 to it. Changed to 0xFFFF
> should be better.
0xffff is within the range for the maximum usable filedescriptor on Linux,
and not even very uncommon a setting, at that. Use ~0 instead, or change
fb_id to be an int instead of an unsigned.
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
More information about the wayland-devel