>>> On 05.10.18 at 20:47, <sstabell...@kernel.org> wrote: > --- a/xen/drivers/char/console.c > +++ b/xen/drivers/char/console.c > @@ -406,6 +406,13 @@ static void dump_console_ring_key(unsigned char key) > */ > static unsigned int __read_mostly console_rx = 0; > > +struct domain *console_input_domain(void) > +{ > + if ( console_rx == 0 ) > + return NULL; > + return get_domain_by_id(console_rx - 1);
This acquires a domain reference, yet I can't see that reference getting dropped anywhere in the caller. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel