linux-cpupower-5.9-rc1

This cpupower update for Linux 5.9-rc1 consists of 2 fixes to coccicheck
 warnings and one change to replacing HTTP links with HTTPS ones.
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEPZKym/RZuOCGeA/kCwJExA0NQxwFAl8baiwACgkQCwJExA0N
 QxzMIBAAxXIdBcKNvG8I8klwYn6+gWWOzdcBKmNSyUrxddEfKirTs+SNnNb62E/A
 s8blg8KkIN2KKuQhwR9uoJjg9Rzp2VdPswYLk45Sf+AfnocTtMHHp6/xUkqZ5FrV
 L+CAxMQPPeE8CkLWxDeFLpr/Qh/yv5VHELCIFuH1FxYb6pfhNXqFx/xe8VeJIM7c
 HRViDE+YIKMT3xvI4rfkFoEoo6lFlYuQbbL9zRvmIYX8Oh1EHi4UCeXfssGsLvxy
 GOyjnH3RkunsZAxnK05sXV6bEaxxFp5dREAdi2J9dl8N3vZ+v/m4kRUIP/EIeGB2
 h3iHIKw23+Q6XeidtGAjgVg9yw0TESRUaZd9UqZtqHhqdLN/8BS7e/PZQhzvd/Ly
 UVvooMJQOHvYrqxVbVDTbnGUAKdAzhXdOEmSSEt8K1f5xqYEFN+OGzMml0ZRydL7
 HMVcnU3T6Pb3jXEZXL9PJujVA07p8BPHHh4jAZJ6H5xR74BZgZ+lCop65sohSf4H
 21F5BuZ23SYh0wY7RepjXt7j28ZF+QiXT+11Bu2hDbYJPl5MVujGIwUQt+jMPpWT
 LGpISlO3mT5j9k3SGyPHdpa+c6wyLEugtM00THvpQ0rwRfTdmhvOBCdLiraDIBfs
 DbadHPk8tpCa5p9NmUDTcsvxuPoO2unVf3vkPpffAVoWsMDlA10=
 =Ar+p
 -----END PGP SIGNATURE-----

Merge tag 'linux-cpupower-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux

Pull cpupower utility updates for v5.9 from Shuah Khan:

"This cpupower update for Linux 5.9-rc1 consists of 2 fixes to
 coccicheck warnings and one change to replacing HTTP links with
 HTTPS ones."

* tag 'linux-cpupower-5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux:
  cpupower: Replace HTTP links with HTTPS ones
  cpupower: Fix NULL but dereferenced coccicheck errors
  cpupower: Fix comparing pointer to 0 coccicheck warns
This commit is contained in:
Rafael J. Wysocki 2020-07-27 12:42:17 +02:00
commit 671be01ca2
3 changed files with 10 additions and 10 deletions

View File

@ -285,7 +285,7 @@ struct cpufreq_available_governors *cpufreq_get_available_governors(unsigned
} else {
first = malloc(sizeof(*first));
if (!first)
goto error_out;
return NULL;
current = first;
}
current->first = first;
@ -362,7 +362,7 @@ struct cpufreq_available_frequencies
} else {
first = malloc(sizeof(*first));
if (!first)
goto error_out;
return NULL;
current = first;
}
current->first = first;
@ -418,7 +418,7 @@ struct cpufreq_available_frequencies
} else {
first = malloc(sizeof(*first));
if (!first)
goto error_out;
return NULL;
current = first;
}
current->first = first;
@ -493,7 +493,7 @@ static struct cpufreq_affected_cpus *sysfs_get_cpu_list(unsigned int cpu,
} else {
first = malloc(sizeof(*first));
if (!first)
goto error_out;
return NULL;
current = first;
}
current->first = first;
@ -726,7 +726,7 @@ struct cpufreq_stats *cpufreq_get_stats(unsigned int cpu,
} else {
first = malloc(sizeof(*first));
if (!first)
goto error_out;
return NULL;
current = first;
}
current->first = first;

View File

@ -170,7 +170,7 @@ displayed.
.SH REFERENCES
"BIOS and Kernel Developers Guide (BKDG) for AMD Family 14h Processors"
http://support.amd.com/us/Processor_TechDocs/43170.pdf
https://support.amd.com/us/Processor_TechDocs/43170.pdf
"Intel® Turbo Boost Technology
in Intel® Core™ Microarchitecture (Nehalem) Based Processors"
@ -178,7 +178,7 @@ http://download.intel.com/design/processor/applnots/320354.pdf
"Intel® 64 and IA-32 Architectures Software Developer's Manual
Volume 3B: System Programming Guide"
http://www.intel.com/products/processor/manuals
https://www.intel.com/products/processor/manuals
.SH FILES
.ta

View File

@ -26,11 +26,11 @@ struct bitmask *bitmask_alloc(unsigned int n)
struct bitmask *bmp;
bmp = malloc(sizeof(*bmp));
if (bmp == 0)
if (!bmp)
return 0;
bmp->size = n;
bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long));
if (bmp->maskp == 0) {
if (!bmp->maskp) {
free(bmp);
return 0;
}
@ -40,7 +40,7 @@ struct bitmask *bitmask_alloc(unsigned int n)
/* Free `struct bitmask` */
void bitmask_free(struct bitmask *bmp)
{
if (bmp == 0)
if (!bmp)
return;
free(bmp->maskp);
bmp->maskp = (unsigned long *)0xdeadcdef; /* double free tripwire */