Skip to content

Commit

Permalink
Fixed capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
keroeslux authored and mmaneetsingh committed May 13, 2022
1 parent 6414743 commit aaaa7d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/nvidia/arch/nvalloc/unix/src/escape.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
} \
}

// only return errors through pApi->status
// Only return errors through pApi->status
static void RmCreateOsDescriptor(NVOS32_PARAMETERS *pApi, API_SECURITY_INFO secInfo)
{
NV_STATUS rmStatus;
Expand Down Expand Up @@ -143,7 +143,7 @@ static void RmCreateOsDescriptor(NVOS32_PARAMETERS *pApi, API_SECURITY_INFO secI
pApi->status = rmStatus;
}

// only return errors through pApi->status
// Only return errors through pApi->status
static void RmAllocOsDescriptor(NVOS02_PARAMETERS *pApi, API_SECURITY_INFO secInfo)
{
NV_STATUS rmStatus = NV_OK;
Expand Down Expand Up @@ -199,7 +199,7 @@ static void RmAllocOsDescriptor(NVOS02_PARAMETERS *pApi, API_SECURITY_INFO secIn
if (DRF_VAL(OS02, _FLAGS, _ALLOC_USER_READ_ONLY, pApi->flags))
attr2 = FLD_SET_DRF(OS32, _ATTR2, _PROTECTION_USER, _READ_ONLY, attr2);

// currently CPU-RO memory implies GPU-RO as well
// Currently CPU-RO memory implies GPU-RO as well
if (DRF_VAL(OS02, _FLAGS, _ALLOC_DEVICE_READ_ONLY, pApi->flags) ||
DRF_VAL(OS02, _FLAGS, _ALLOC_USER_READ_ONLY, pApi->flags))
attr2 = FLD_SET_DRF(OS32, _ATTR2, _PROTECTION_DEVICE, _READ_ONLY, attr2);
Expand Down

0 comments on commit aaaa7d9

Please sign in to comment.