mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
drm/amd/ras: return error when converting records to nps pages fails
return error when converting records to nps pages fails Signed-off-by: Gangliang Xie <ganglxie@amd.com> Reviewed-by: Tao Zhou <tao.zhou1@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
df749c115f
commit
d352990bca
|
|
@ -391,9 +391,8 @@ static int ras_umc_update_eeprom_ram_data(struct ras_core_context *ras_core,
|
|||
data->space_left--;
|
||||
}
|
||||
} else {
|
||||
memcpy(&data->bps[data->count], bps, sizeof(*data->bps));
|
||||
data->count++;
|
||||
data->space_left--;
|
||||
RAS_DEV_ERR(ras_core->dev, "Failed to convert record to nps pages!");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user