xserver/hw/xfree86/drivers/modesetting
Enrico Weigelt, metux IT consult d8e6511b1b xfree86: use calloc() instead of malloc()
Using calloc() instead of malloc() as preventive measure, so there
never can be any hidden bugs or leaks due uninitialized memory.

The extra cost of using this compiler intrinsic should be practically
impossible to measure - in many cases a good compiler can even deduce
if certain areas really don't need to be zero'd (because they're written
to right after allocation) and create more efficient machine code.

The code pathes in question are pretty cold anyways, so it's probably
not worth even thinking about potential extra runtime costs.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-06-12 16:49:57 +02:00
..
dri2.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
driver.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
driver.h xfree86: modeset: call miCreateScreenResources() directly 2025-06-12 16:41:39 +02:00
drmmode_display.c xfree86: use calloc() instead of malloc() 2025-06-12 16:49:57 +02:00
drmmode_display.h modesetting: Use a more optimal hw cursor size 2023-12-16 08:03:26 +02:00
dumb_bo.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
dumb_bo.h modesetting: Drop dumb_bo::map_count field and dead unmap code. 2014-12-11 11:26:19 -08:00
meson.build modsetting: also add libglx to library symbol test 2025-02-17 18:42:52 +00:00
modesetting.man man pages: strip trailing whitespace 2025-05-31 14:51:24 -07:00
pageflip.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00
present.c modesetting: avoid memory leak when ms_present_check_unflip() returns FALSE 2024-10-28 05:38:25 +00:00
vblank.c drop obsolete HAVE_DIX_CONFIG_H 2024-10-10 13:38:31 +00:00