[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] xenbus: Fix obvious use-after-free spotted by Coverity checker.
# HG changeset patch # User kfraser@xxxxxxxxxxxxxxxxxxxxx # Date 1185293349 -3600 # Node ID 3b0bce92b2f254242c785d2662776e04a0817301 # Parent d88e59a7334ae584900a9f7221d494bcd9ef2a63 xenbus: Fix obvious use-after-free spotted by Coverity checker. Signed-off-by: Adrian Bunk <bunk@xxxxxxxxx> --- drivers/xen/xenbus/xenbus_xs.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -r d88e59a7334a -r 3b0bce92b2f2 drivers/xen/xenbus/xenbus_xs.c --- a/drivers/xen/xenbus/xenbus_xs.c Tue Jul 24 09:39:00 2007 +0100 +++ b/drivers/xen/xenbus/xenbus_xs.c Tue Jul 24 17:09:09 2007 +0100 @@ -802,8 +802,8 @@ static int process_msg(void) msg->u.watch.vec = split(body, msg->hdr.len, &msg->u.watch.vec_size); if (IS_ERR(msg->u.watch.vec)) { + err = PTR_ERR(msg->u.watch.vec); kfree(msg); - err = PTR_ERR(msg->u.watch.vec); goto out; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |