Commit 672f97ad authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

vdso: don't call close() for a negative value

CID 157801 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
19. negative_returns: fd is passed to a parameter that cannot be negative.
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent a28c4a99
......@@ -212,7 +212,7 @@ int parasite_fixup_vdso(struct parasite_ctl *ctl, pid_t pid,
}
exit_code = 0;
err:
close(fd);
close_safe(&fd);
return exit_code;
}
......
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