[libvirt] [PATCH v2 2/4] ppc64Compute: Avoid possible NULL dereference

Peter Krempa pkrempa at redhat.com
Thu Jun 2 11:37:06 UTC 2016


On Thu, Jun 02, 2016 at 12:42:51 +0200, Michal Privoznik wrote:
> cpu/cpu_ppc64.c: In function 'ppc64Compute':
> cpu/cpu_ppc64.c:620:27: error: potential null pointer dereference [-Werror=null-dereference]
>      if (STRNEQ(guest_model->name, host_model->name)) {
>                 ~~~~~~~~~~~^~~
> cpu/cpu_ppc64.c:620:9: note: in expansion of macro 'STRNEQ'
>      if (STRNEQ(guest_model->name, host_model->name)) {
>          ^~~~~~
> cc1: all warnings being treated as errors
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/cpu/cpu_ppc64.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)

ACK




More information about the libvir-list mailing list