mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
drm/nouveau/secboot: prevent address trimming
Using 32-bit integers would trim the WPR address if it is allocated above 4GB. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
098ee77224
commit
913b97f944
1 changed files with 2 additions and 2 deletions
|
|
@ -502,8 +502,8 @@ acr_r352_fixup_hs_desc(struct acr_r352 *acr, struct nvkm_secboot *sb,
|
|||
|
||||
/* WPR region information if WPR is not fixed */
|
||||
if (sb->wpr_size == 0) {
|
||||
u32 wpr_start = ls_blob->addr;
|
||||
u32 wpr_end = wpr_start + ls_blob->size;
|
||||
u64 wpr_start = ls_blob->addr;
|
||||
u64 wpr_end = wpr_start + ls_blob->size;
|
||||
|
||||
desc->wpr_region_id = 1;
|
||||
desc->regions.no_regions = 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue