Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq:
[CPUFREQ] Fix memory leaks in pcc_cpufreq_do_osc
[CPUFREQ] acpi-cpufreq: add missing __percpu markup

+12 -6
+12 -6
arch/x86/kernel/cpu/cpufreq/pcc-cpufreq.c
··· 368 368 return -ENODEV; 369 369 370 370 out_obj = output.pointer; 371 - if (out_obj->type != ACPI_TYPE_BUFFER) 372 - return -ENODEV; 371 + if (out_obj->type != ACPI_TYPE_BUFFER) { 372 + ret = -ENODEV; 373 + goto out_free; 374 + } 373 375 374 376 errors = *((u32 *)out_obj->buffer.pointer) & ~(1 << 0); 375 - if (errors) 376 - return -ENODEV; 377 + if (errors) { 378 + ret = -ENODEV; 379 + goto out_free; 380 + } 377 381 378 382 supported = *((u32 *)(out_obj->buffer.pointer + 4)); 379 - if (!(supported & 0x1)) 380 - return -ENODEV; 383 + if (!(supported & 0x1)) { 384 + ret = -ENODEV; 385 + goto out_free; 386 + } 381 387 382 388 out_free: 383 389 kfree(output.pointer);