it seems that we could end here if drmModeCrtcGetGamma fails, in which case `perror("malloc")` is misleading.