⬢ DragonFlyBSD Kernel Audit
DF-4049 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/drm/amd/display/dc/bios/command_table.c
+++ b/sys/dev/drm/amd/display/dc/bios/command_table.c
@@ -1662,13 +1662,13 @@ static void init_dac_output_control(struct bios_parser *bp)
 static enum bp_result dac1_output_control_v1(
 	struct bios_parser *bp, bool enable)
 {
 	enum bp_result result = BP_RESULT_FAILURE;
-	DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params;
+	DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params = {0};
 
 	if (enable)
 		params.ucAction = ATOM_ENABLE;
 	else
 		params.ucAction = ATOM_DISABLE;
 
 	if (EXEC_BIOS_CMD_TABLE(DAC1OutputControl, params))
@@ -1679,13 +1679,13 @@ static enum bp_result dac1_output_control_v1(
 static enum bp_result dac2_output_control_v1(
 	struct bios_parser *bp, bool enable)
 {
 	enum bp_result result = BP_RESULT_FAILURE;
-	DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params;
+	DISPLAY_DEVICE_OUTPUT_CONTROL_PS_ALLOCATION params = {0};
 
 	if (enable)
 		params.ucAction = ATOM_ENABLE;
 	else
 		params.ucAction = ATOM_DISABLE;
 
 	if (EXEC_BIOS_CMD_TABLE(DAC2OutputControl, params))