File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,14 @@ def collect_stats(kernel_repo, cve_patch):
136
136
fp_contents = [line .rstrip ('\n ' ) for line in
137
137
open (kernel_repo + '/' + file , 'r' ) if line .strip ()]
138
138
139
+ # we need this array so we can check the above block
140
+ all_added = []
141
+ for (above , added , below ) in patch_added_lines [file ]:
142
+ # keep track of all added lines
143
+ all_added .extend (added )
144
+
139
145
for i in range (0 , len (fp_contents )):
140
146
line = fp_contents [i ]
141
- # we need this array so we can check the above block
142
- all_added = []
143
- for (above , added , below ) in patch_added_lines [file ]:
144
- # keep track of all added lines
145
- all_added .extend (added )
146
147
147
148
for (above , added , below ) in patch_added_lines [file ]:
148
149
# check if the added block is present
You can’t perform that action at this time.
0 commit comments