mesa-drm/intel
Chris Wilson acb4aa6715 intel: Review use of errno.
Hitting this error lead to a segfault:

  intel_bufmgr_gem.c:919: Error mapping buffer 48607 (pixmap):
                          Cannot allocate memory.

because the errno was reused as the function return value after being
reset by the fprintf(), so caller thought the mapping had succeeded. The
convention established by libdrm is that the return value is the
negative errno and that uses of libdrm cannot trust the value of errno
afterwards, but must use the return code.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
2009-12-02 14:17:04 +00:00
..
intel_atomic.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
intel_bufmgr.c Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_bufmgr.h Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_bufmgr_fake.c Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
intel_bufmgr_gem.c intel: Review use of errno. 2009-12-02 14:17:04 +00:00
intel_bufmgr_priv.h Merge remote branch 'origin/master' into libdrm 2009-11-20 17:09:03 -05:00
intel_chipset.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
libdrm_intel.pc.in Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
Makefile.am Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
mm.c Move libdrm/ up one level 2009-11-17 11:15:06 -05:00
mm.h Move libdrm/ up one level 2009-11-17 11:15:06 -05:00