Re: [systemd-devel] [PATCH v2] domain: rework kdbus_domain_new() error path to fix a BUG_ON()

2014-06-03 Thread Kay Sievers
On Tue, Jun 3, 2014 at 5:31 PM, Djalal Harouni wrote: > Currently just running: test/test-kdbus will trigger the BUG_ON() > appended at the bottom. > > This is due to the test in check_domain_make() where we try to register > the same domain twice line: 297, hence kdbus_domain_new() fails with > -

[systemd-devel] [PATCH v2] domain: rework kdbus_domain_new() error path to fix a BUG_ON()

2014-06-03 Thread Djalal Harouni
Currently just running: test/test-kdbus will trigger the BUG_ON() appended at the bottom. This is due to the test in check_domain_make() where we try to register the same domain twice line: 297, hence kdbus_domain_new() fails with -EEXIST at line domain.c:289 Later on error path we clear the non-