forked from mirrors/linux
		
	ACPI: sleep: Put the FACS table after using it
Put the FACS table after using it to release the table mapping. Signed-off-by: Hanjun Guo <guohanjun@huawei.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
		
							parent
							
								
									ead7ba1362
								
							
						
					
					
						commit
						95722237cb
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -1297,8 +1297,10 @@ static void acpi_sleep_hibernate_setup(void) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
| 	acpi_get_table(ACPI_SIG_FACS, 1, (struct acpi_table_header **)&facs); | 	acpi_get_table(ACPI_SIG_FACS, 1, (struct acpi_table_header **)&facs); | ||||||
| 	if (facs) | 	if (facs) { | ||||||
| 		s4_hardware_signature = facs->hardware_signature; | 		s4_hardware_signature = facs->hardware_signature; | ||||||
|  | 		acpi_put_table((struct acpi_table_header *)facs); | ||||||
|  | 	} | ||||||
| } | } | ||||||
| #else /* !CONFIG_HIBERNATION */ | #else /* !CONFIG_HIBERNATION */ | ||||||
| static inline void acpi_sleep_hibernate_setup(void) {} | static inline void acpi_sleep_hibernate_setup(void) {} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Hanjun Guo
						Hanjun Guo