[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Possible bug in xenbus __xenbus_switch_state
HI, Looking at the function __xenbus_switch_state in file source/drivers/xen/xenbus/xenbus_client.c, The comment says: "We check whether the state is currently set to the given value, and if not, then the state is set." The code loads the old state value, but never does anything with it. I would expect it to look something like: err = xenbus_scanf(xbt, dev->nodename, "state", "%d", ¤t_state); if (err != 1 || current_state != state) { err = xenbus_printf(xbt, dev->nodename, "state", "%d", state); if (err) { xenbus_switch_fatal(dev, depth, err, "writing new state"); goto abort; } } -- Andrew Reimers _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |