Commit cff9654d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

uts: Don't fail on "show" if there is no data dumped

Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 995b0bf5
......@@ -104,7 +104,7 @@ static void show_uts_string(int fd, char *n)
u32 len;
char str[65];
ret = read_img(fd, &len);
ret = read_img_eof(fd, &len);
if (ret > 0) {
if (len >= sizeof(str)) {
pr_err("Corrupted hostname\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment