Commit c3e7cc8
thunderbolt: Use kzalloc_flex() for struct tb_path allocation
Simplifies allocation of struct tb_path by using a flexible array
member. Also added __counted_by for extra runtime analysis.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>1 parent 500e54d commit c3e7cc8
2 files changed
Lines changed: 10 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| 157 | + | |
| 158 | + | |
157 | 159 | | |
158 | 160 | | |
159 | | - | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 164 | | |
170 | 165 | | |
171 | 166 | | |
| |||
245 | 240 | | |
246 | 241 | | |
247 | 242 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | 243 | | |
253 | 244 | | |
254 | 245 | | |
| |||
259 | 250 | | |
260 | 251 | | |
261 | 252 | | |
262 | | - | |
263 | | - | |
| 253 | + | |
264 | 254 | | |
265 | | - | |
266 | 255 | | |
267 | 256 | | |
268 | 257 | | |
269 | 258 | | |
270 | | - | |
271 | | - | |
272 | | - | |
| 259 | + | |
| 260 | + | |
273 | 261 | | |
274 | | - | |
275 | 262 | | |
| 263 | + | |
276 | 264 | | |
277 | 265 | | |
278 | 266 | | |
| |||
339 | 327 | | |
340 | 328 | | |
341 | 329 | | |
342 | | - | |
343 | 330 | | |
344 | 331 | | |
345 | 332 | | |
| |||
372 | 359 | | |
373 | 360 | | |
374 | 361 | | |
375 | | - | |
376 | 362 | | |
377 | 363 | | |
378 | 364 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
422 | | - | |
423 | 422 | | |
424 | 423 | | |
| 424 | + | |
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| |||
440 | 440 | | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | 443 | | |
445 | 444 | | |
| 445 | + | |
| 446 | + | |
446 | 447 | | |
447 | 448 | | |
448 | 449 | | |
| |||
0 commit comments