diff options
| author | Tao Zhou <[email protected]> | 2024-05-17 10:04:26 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-05-20 20:20:26 +0000 |
| commit | 2aadb520bfacec12527effce3566f8df55e5d08e (patch) | |
| tree | caa3c293abd91526686de270263a5e21f093cd5f /drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h | |
| parent | drm/amd/swsmu: update Dpmclocks_t for smu v14.0.1 (diff) | |
| download | kernel-2aadb520bfacec12527effce3566f8df55e5d08e.tar.gz kernel-2aadb520bfacec12527effce3566f8df55e5d08e.zip | |
drm/amdgpu: update type of buf size to u32 for eeprom functions
Avoid overflow issue.
Signed-off-by: Tao Zhou <[email protected]>
Reviewed-by: Yang Wang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h index 6935adb2be1f..8083b8253ef4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_eeprom.h @@ -28,10 +28,10 @@ int amdgpu_eeprom_read(struct i2c_adapter *i2c_adap, u32 eeprom_addr, u8 *eeprom_buf, - u16 bytes); + u32 bytes); int amdgpu_eeprom_write(struct i2c_adapter *i2c_adap, u32 eeprom_addr, u8 *eeprom_buf, - u16 bytes); + u32 bytes); #endif |
