* testing against TEGRA_TILE */
if ((modifier & 0x10) == 0x10) {
char *mod_nvidia;
- asprintf(&mod_nvidia, "BLOCK_LINEAR_2D,HEIGHT=%"PRIu64",KIND=%"PRIu64","
+ if (asprintf(&mod_nvidia, "BLOCK_LINEAR_2D,HEIGHT=%"PRIu64",KIND=%"PRIu64","
"GEN=%"PRIu64",SECTOR=%"PRIu64",COMPRESSION=%"PRIu64"", height,
- kind, gen, sector, compression);
+ kind, gen, sector, compression) < 0)
+ return NULL;
return mod_nvidia;
}
else
opts_str = "0";
- asprintf(&mod_amlogic, "FBC,LAYOUT=%s,OPTIONS=%s", layout_str, opts_str);
+ if (asprintf(&mod_amlogic, "FBC,LAYOUT=%s,OPTIONS=%s", layout_str, opts_str)
+ < 0)
+ return NULL;
return mod_amlogic;
}
break;
}
- asprintf(&mod_vivante, "%s%s%s", color_tiling, tile_status, compression);
+ if (asprintf(&mod_vivante, "%s%s%s", color_tiling, tile_status, compression)
+ < 0)
+ return NULL;
return mod_vivante;
}