Re: [PATCH v6 8/9] chardev/char.c: Check for duplicate id before creating chardev

2020-07-31 Thread Lukas Straub
On Fri, 31 Jul 2020 10:37:34 +0100 Daniel P. Berrangé wrote: > On Fri, Jul 31, 2020 at 11:27:04AM +0200, Lukas Straub wrote: > > yank_register_instance (called when creating the new chardev object) > > aborts if the instance already exists. So check for duplicate id before > > creating the new ch

Re: [PATCH v6 8/9] chardev/char.c: Check for duplicate id before creating chardev

2020-07-31 Thread Daniel P . Berrangé
On Fri, Jul 31, 2020 at 11:27:04AM +0200, Lukas Straub wrote: > yank_register_instance (called when creating the new chardev object) > aborts if the instance already exists. So check for duplicate id before > creating the new chardev to prevent this. I feel the right answer here is for yank_regist

[PATCH v6 8/9] chardev/char.c: Check for duplicate id before creating chardev

2020-07-31 Thread Lukas Straub
yank_register_instance (called when creating the new chardev object) aborts if the instance already exists. So check for duplicate id before creating the new chardev to prevent this. Signed-off-by: Lukas Straub --- chardev/char.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-)