diff options
| author | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:15:56 +0100 |
|---|---|---|
| committer | Radek Novacek <rnovacek@redhat.com> | 2013-11-18 14:43:05 +0100 |
| commit | 0169c7d2a2b26a86eb10542690c557c34fc0eb00 (patch) | |
| tree | 3b885d1798c418276fbe5e631039048189c76484 /src/hardware | |
| parent | 34e418f1cc72dc79b25c6bc4c7db9866e07c95b8 (diff) | |
| download | openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.gz openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.tar.xz openlmi-providers-0169c7d2a2b26a86eb10542690c557c34fc0eb00.zip | |
Fix missing format strings
Missing format strings are considered a vulnerability.
Diffstat (limited to 'src/hardware')
| -rw-r--r-- | src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c | 2 | ||||
| -rw-r--r-- | src/hardware/LMI_MemoryProvider.c | 2 | ||||
| -rw-r--r-- | src/hardware/LMI_ProcessorCacheMemoryProvider.c | 2 | ||||
| -rw-r--r-- | src/hardware/LMI_ProcessorCapabilitiesProvider.c | 2 | ||||
| -rw-r--r-- | src/hardware/LMI_ProcessorElementCapabilitiesProvider.c | 2 | ||||
| -rw-r--r-- | src/hardware/LMI_ProcessorProvider.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c index 7f0c9b7..8fe6956 100644 --- a/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c +++ b/src/hardware/LMI_AssociatedProcessorCacheMemoryProvider.c @@ -295,7 +295,7 @@ done: sysfs_free_cpu_caches(&sysfs_cpu_caches, &sysfs_cpu_caches_nb); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); diff --git a/src/hardware/LMI_MemoryProvider.c b/src/hardware/LMI_MemoryProvider.c index 43cba24..02ccd76 100644 --- a/src/hardware/LMI_MemoryProvider.c +++ b/src/hardware/LMI_MemoryProvider.c @@ -139,7 +139,7 @@ done: free(huge_page_sizes); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); diff --git a/src/hardware/LMI_ProcessorCacheMemoryProvider.c b/src/hardware/LMI_ProcessorCacheMemoryProvider.c index 616faa7..64879dc 100644 --- a/src/hardware/LMI_ProcessorCacheMemoryProvider.c +++ b/src/hardware/LMI_ProcessorCacheMemoryProvider.c @@ -158,7 +158,7 @@ done: sysfs_free_cpu_caches(&sysfs_cpu_caches, &sysfs_cpu_caches_nb); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); diff --git a/src/hardware/LMI_ProcessorCapabilitiesProvider.c b/src/hardware/LMI_ProcessorCapabilitiesProvider.c index a3ed407..9eeb9b6 100644 --- a/src/hardware/LMI_ProcessorCapabilitiesProvider.c +++ b/src/hardware/LMI_ProcessorCapabilitiesProvider.c @@ -131,7 +131,7 @@ done: dmi_free_processors(&dmi_cpus, &dmi_cpus_nb); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); diff --git a/src/hardware/LMI_ProcessorElementCapabilitiesProvider.c b/src/hardware/LMI_ProcessorElementCapabilitiesProvider.c index fcb5128..a74cdff 100644 --- a/src/hardware/LMI_ProcessorElementCapabilitiesProvider.c +++ b/src/hardware/LMI_ProcessorElementCapabilitiesProvider.c @@ -137,7 +137,7 @@ done: dmi_free_processors(&dmi_cpus, &dmi_cpus_nb); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); diff --git a/src/hardware/LMI_ProcessorProvider.c b/src/hardware/LMI_ProcessorProvider.c index 04e1d80..273a03d 100644 --- a/src/hardware/LMI_ProcessorProvider.c +++ b/src/hardware/LMI_ProcessorProvider.c @@ -252,7 +252,7 @@ done: cpuinfo_free_processor(&proc_cpu); if (error_msg) { - KReturn2(_cb, ERR_FAILED, error_msg); + KReturn2(_cb, ERR_FAILED, "%s", error_msg); } CMReturn(CMPI_RC_OK); |
