Re: [PATCH for-6.2 v6 3/7] spapr_drc.c: do not error_report() when drc->dev->id == NULL

2021-08-08 Thread David Gibson
On Sat, Aug 07, 2021 at 03:41:52PM +0200, Markus Armbruster wrote: > Daniel Henrique Barboza writes: > > > The error_report() call in drc_unisolate_logical() is not considering > > that drc->dev->id can be NULL, and the underlying functions error_report() > > calls to do its job (vprintf(),

Re: [PATCH for-6.2 v6 3/7] spapr_drc.c: do not error_report() when drc->dev->id == NULL

2021-08-07 Thread Markus Armbruster
Daniel Henrique Barboza writes: > The error_report() call in drc_unisolate_logical() is not considering > that drc->dev->id can be NULL, and the underlying functions error_report() > calls to do its job (vprintf(), g_strdup_printf() ...) has undefined > behavior when trying to handle "%s" with

[PATCH for-6.2 v6 3/7] spapr_drc.c: do not error_report() when drc->dev->id == NULL

2021-07-19 Thread Daniel Henrique Barboza
The error_report() call in drc_unisolate_logical() is not considering that drc->dev->id can be NULL, and the underlying functions error_report() calls to do its job (vprintf(), g_strdup_printf() ...) has undefined behavior when trying to handle "%s" with NULL arguments. Besides, there is no