summaryrefslogtreecommitdiffstats
path: root/debian/patches/103066.patch
blob: 7346d5596779b4a4281bdb0036df0c0d61b7bc6c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Index: src/VBox/Runtime/common/log/log.cpp
===================================================================
--- a/src/VBox/Runtime/common/log/log.cpp	(revision 103065)
+++ b/src/VBox/Runtime/common/log/log.cpp	(revision 103066)
@@ -548,7 +548,7 @@
         uint32_t const fFlags = RT_LO_U16(fFlagsAndGroup);
         uint16_t const iGroup = RT_HI_U16(fFlagsAndGroup);
         if (   iGroup != UINT16_MAX
-            && (   (pLoggerInt->afGroups[iGroup < pLoggerInt->cGroups ? iGroup : 0] & (fFlags | RTLOGGRPFLAGS_ENABLED))
+            && (   (*(pLoggerInt->afGroups + (iGroup < pLoggerInt->cGroups ? iGroup : 0)) & (fFlags | RTLOGGRPFLAGS_ENABLED))
                 != (fFlags | RTLOGGRPFLAGS_ENABLED)))
             pLoggerInt = NULL;
     }
@@ -1555,7 +1555,7 @@
     pLoggerInt->fFlags |= RTLOGFLAGS_DISABLED;
     iGroup = pLoggerInt->cGroups;
     while (iGroup-- > 0)
-        pLoggerInt->afGroups[iGroup] = 0;
+        *(pLoggerInt->afGroups + iGroup) = 0;
 
     /*
      * Flush it.
@@ -1788,9 +1788,9 @@
             for (i = 0; i < pLoggerInt->cGroups; i++)
             {
                 if (fEnabled)
-                    pLoggerInt->afGroups[i] |= fFlags;
+                    *(pLoggerInt->afGroups + i) |= fFlags;
                 else
-                    pLoggerInt->afGroups[i] &= ~fFlags;
+                    *(pLoggerInt->afGroups + i) &= ~fFlags;
             }
         }
         else
@@ -4158,7 +4158,7 @@
         || !pszFormat || !*pszFormat)
         return VINF_LOG_DISABLED;
     if (    iGroup != ~0U
-        &&  (pLoggerInt->afGroups[iGroup] & (fFlags | RTLOGGRPFLAGS_ENABLED)) != (fFlags | RTLOGGRPFLAGS_ENABLED))
+        &&  (*(pLoggerInt->afGroups + iGroup) & (fFlags | RTLOGGRPFLAGS_ENABLED)) != (fFlags | RTLOGGRPFLAGS_ENABLED))
         return VINF_LOG_DISABLED;
 
     /*
Index: src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
===================================================================
--- a/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c	(revision 103065)
+++ b/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c	(revision 103066)
@@ -425,7 +425,7 @@
         {
             fContiguous = true;
             for (iPage = 0; iPage < cPages; iPage++)
-                pMemLnx->apPages[iPage] = &paPages[iPage];
+                *(pMemLnx->apPages + iPage) = &paPages[iPage];
         }
         else if (fContiguous)
         {
@@ -441,11 +441,11 @@
          *        IPRT_USE_APPLY_TO_PAGE_RANGE_FOR_EXEC. */
         for (iPage = 0; iPage < cPages; iPage++)
         {
-            pMemLnx->apPages[iPage] = alloc_page(fFlagsLnx | __GFP_NOWARN);
-            if (RT_UNLIKELY(!pMemLnx->apPages[iPage]))
+            *(pMemLnx->apPages + iPage) = alloc_page(fFlagsLnx | __GFP_NOWARN);
+            if (RT_UNLIKELY(!*(pMemLnx->apPages + iPage)))
             {
                 while (iPage-- > 0)
-                    __free_page(pMemLnx->apPages[iPage]);
+                    __free_page(*(pMemLnx->apPages + iPage));
                 rtR0MemObjDelete(&pMemLnx->Core);
                 return rcNoMem;
             }
@@ -622,7 +622,7 @@
     {
         size_t iPage = pMemLnx->cPages;
         while (iPage-- > 0)
-            if (PageHighMem(pMemLnx->apPages[iPage]))
+            if (PageHighMem(*(pMemLnx->apPages + iPage)))
             {
                 fMustMap = true;
                 break;