mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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@cl.cam.ac.uk>
This commit is contained in:
1 parent
e8be5b7354
commit
d07778ac00
1 file changed
-6
@@ -103,12 +103,6 @@ char *xenbus_read(const char *dir, const char *name, unsigned int *data_n)
|
||||
} 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:
|
||||
|
||||