Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c7524bf authored by Alex Deucher's avatar Alex Deucher
Browse files

drm/radeon/atom: fix endian bug in radeon_atom_init_mc_reg_table()

parent aa71d830
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3732,7 +3732,7 @@ int radeon_atom_init_mc_reg_table(struct radeon_device *rdev,
							}
							num_ranges++;
						}
						reg_data += reg_block->usRegDataBlkSize;
						reg_data += le16_to_cpu(reg_block->usRegDataBlkSize);
					}
					if (*(u32 *)reg_data != END_OF_REG_DATA_BLOCK)
						return -EINVAL;