[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Remove incorrect check for terminating nul character.
# HG changeset patch # User cl349@xxxxxxxxxxxxxxxxxxxx # Node ID 5985fc86b3daf01b176c9d286d51386b06a094a2 # Parent 749dbd8ae9b0fa3c9b06a2599f9f04ff3ad685d5 Remove incorrect check for terminating nul character. The terminating nul character is not stored in the store but added by read_reply. Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx> diff -r 749dbd8ae9b0 -r 5985fc86b3da linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c --- a/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Fri Jul 1 12:48:40 2005 +++ b/linux-2.6.11-xen-sparse/drivers/xen/xenbus/xenbus_probe.c Fri Jul 1 13:30:45 2005 @@ -103,12 +103,6 @@ } else if(n == 0){ err = -ENOENT; kfree(data); - } else if(data[n - 1] != '\0') { - /* This shouldn't happen: everything is supposed to be a string. */ - printk("XENBUS: Reading path %s: missing null terminator len=%i\n", path, n); - err = -EINVAL; - kfree(data); - n = 0; } kfree(path); out: _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |