Rev 1498 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1498 | Rev 2216 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | /****************************************************************************** |
7 | /****************************************************************************** |
8 | * |
8 | * |
9 | * 1. Copyright Notice |
9 | * 1. Copyright Notice |
10 | * |
10 | * |
11 | * Some or all of this work - Copyright (c) 1999 - 2010, Intel Corp. |
11 | * Some or all of this work - Copyright (c) 1999 - 2011, Intel Corp. |
12 | * All rights reserved. |
12 | * All rights reserved. |
13 | * |
13 | * |
14 | * 2. License |
14 | * 2. License |
15 | * |
15 | * |
Line 286... | Line 286... | ||
286 | } |
286 | } |
287 | goto Cleanup; |
287 | goto Cleanup; |
288 | } |
288 | } |
Line 289... | Line 289... | ||
289 | 289 | ||
290 | /* |
- | |
291 | * 1) We have a return value, but if one wasn't expected, just exit, this is |
- | |
292 | * not a problem. For example, if the "Implicit Return" feature is |
290 | /* |
293 | * enabled, methods will always return a value. |
291 | * Return value validation and possible repair. |
- | 292 | * |
|
- | 293 | * 1) Don't perform return value validation/repair if this feature |
|
- | 294 | * has been disabled via a global option. |
|
- | 295 | * |
|
- | 296 | * 2) We have a return value, but if one wasn't expected, just exit, |
|
- | 297 | * this is not a problem. For example, if the "Implicit Return" |
|
- | 298 | * feature is enabled, methods will always return a value. |
|
294 | * |
299 | * |
295 | * 2) If the return value can be of any type, then we cannot perform any |
300 | * 3) If the return value can be of any type, then we cannot perform |
296 | * validation, exit. |
301 | * any validation, just exit. |
- | 302 | */ |
|
297 | */ |
303 | if (AcpiGbl_DisableAutoRepair || |
298 | if ((!Predefined->Info.ExpectedBtypes) || |
304 | (!Predefined->Info.ExpectedBtypes) || |
299 | (Predefined->Info.ExpectedBtypes == ACPI_RTYPE_ALL)) |
305 | (Predefined->Info.ExpectedBtypes == ACPI_RTYPE_ALL)) |
300 | { |
306 | { |
301 | goto Cleanup; |
307 | goto Cleanup; |
Line 307... | Line 313... | ||
307 | if (!Data) |
313 | if (!Data) |
308 | { |
314 | { |
309 | goto Cleanup; |
315 | goto Cleanup; |
310 | } |
316 | } |
311 | Data->Predefined = Predefined; |
317 | Data->Predefined = Predefined; |
- | 318 | Data->Node = Node; |
|
312 | Data->NodeFlags = Node->Flags; |
319 | Data->NodeFlags = Node->Flags; |
313 | Data->Pathname = Pathname; |
320 | Data->Pathname = Pathname; |
Line 314... | Line 321... | ||
314 | 321 | ||
315 | /* |
322 | /* |