User: | Jiri Slaby |
Error type: | Leaving function in locked state |
Error type description: | Some lock is not unlocked on all paths of a function, so it is leaked |
File location: | drivers/acpi/osl.c |
Line in file: | 1192 |
Project: | Linux Kernel |
Project version: | 2.6.28 |
Tools: |
Stanse
(1.2)
|
Entered: | 2012-05-21 20:30:05 UTC |
1162 1163 return acpi_check_resource_conflict(&res); 1164} 1165EXPORT_SYMBOL(acpi_check_region); 1166 1167int acpi_check_mem_region(resource_size_t start, resource_size_t n, 1168 const char *name) 1169{ 1170 struct resource res = { 1171 .start = start, 1172 .end = start + n - 1, 1173 .name = name, 1174 .flags = IORESOURCE_MEM, 1175 }; 1176 1177 return acpi_check_resource_conflict(&res); 1178 1179} 1180EXPORT_SYMBOL(acpi_check_mem_region); 1181 1182/* 1183 * Acquire a spinlock. 1184 * 1185 * handle is a pointer to the spinlock_t. 1186 */ 1187 1188acpi_cpu_flags acpi_os_acquire_lock(acpi_spinlock lockp) 1189{ 1190 acpi_cpu_flags flags; 1191 spin_lock_irqsave(lockp, flags); 1192 return flags; 1193} 1194 1195/* 1196 * Release a spinlock. See above. 1197 */ 1198 1199void acpi_os_release_lock(acpi_spinlock lockp, acpi_cpu_flags flags) 1200{ 1201 spin_unlock_irqrestore(lockp, flags); 1202}