xenbus_xs.c: use-after-free

Adrian Bunk
2007-07-23T01:02:48Z

The Coverity checker spotted the following use-after-free
in drivers/xen/xenbus/xenbus_xs.c:

<-- snip -->

...
static int process_msg(void)
{
...
if (IS_ERR(msg->u.watch.vec)) {
kfree(msg);
err = PTR_ERR(msg->u.watch.vec);
...

<-- snip -->

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed