Re: [Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-12 Thread Xiao Guangrong
CCed Haozhong On 01/12/2017 07:09 PM, Stefan Hajnoczi wrote: On Thu, Jan 12, 2017 at 11:18:25AM +0800, Xiao Guangrong wrote: On 01/11/2017 05:36 PM, Stefan Hajnoczi wrote: Unlike g_free(), g_array_free() does not accept a NULL pointer argument. The following error is logged when an nvdimm d

Re: [Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-12 Thread Stefan Hajnoczi
On Thu, Jan 12, 2017 at 11:18:25AM +0800, Xiao Guangrong wrote: > > > On 01/11/2017 05:36 PM, Stefan Hajnoczi wrote: > > Unlike g_free(), g_array_free() does not accept a NULL pointer argument. > > The following error is logged when an nvdimm device is realized: > > > > GLib-CRITICAL **: g_arr

Re: [Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-12 Thread Stefan Hajnoczi
On Wed, Jan 11, 2017 at 09:44:43AM +, Stefan Hajnoczi wrote: > Unlike g_free(), g_array_free() does not accept a NULL pointer argument. > The following error is logged when an nvdimm device is realized: > > GLib-CRITICAL **: g_array_free: assertion 'array' failed > > Cc: Xiao Guangrong > S

Re: [Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-11 Thread Xiao Guangrong
On 01/11/2017 05:36 PM, Stefan Hajnoczi wrote: Unlike g_free(), g_array_free() does not accept a NULL pointer argument. The following error is logged when an nvdimm device is realized: GLib-CRITICAL **: g_array_free: assertion 'array' failed Cc: Xiao Guangrong Signed-off-by: Stefan Hajnocz

Re: [Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-11 Thread Igor Mammedov
On Wed, 11 Jan 2017 09:44:43 + Stefan Hajnoczi wrote: > Unlike g_free(), g_array_free() does not accept a NULL pointer argument. > The following error is logged when an nvdimm device is realized: > > GLib-CRITICAL **: g_array_free: assertion 'array' failed > > Cc: Xiao Guangrong > Signed

[Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-11 Thread Stefan Hajnoczi
Unlike g_free(), g_array_free() does not accept a NULL pointer argument. The following error is logged when an nvdimm device is realized: GLib-CRITICAL **: g_array_free: assertion 'array' failed Cc: Xiao Guangrong Signed-off-by: Stefan Hajnoczi --- hw/acpi/nvdimm.c | 4 +++- 1 file changed,

[Qemu-devel] [PATCH] nvdimm acpi: fix g_array_free() with NULL pointer

2017-01-11 Thread Stefan Hajnoczi
Unlike g_free(), g_array_free() does not accept a NULL pointer argument. The following error is logged when an nvdimm device is realized: GLib-CRITICAL **: g_array_free: assertion 'array' failed Cc: Xiao Guangrong Signed-off-by: Stefan Hajnoczi --- hw/acpi/nvdimm.c | 4 +++- 1 file changed,