[CRIU] [PATCH 2/4] log: log_init -- Check for dup return code

Cyrill Gorcunov gorcunov at openvz.org
Thu Apr 11 18:16:58 EDT 2013


Don't pass negative descriptor to install_service_fd

CID 996213 (#1 of 1): Improper use of negative value (NEGATIVE_RETURNS)
7. negative_returns: "new_logfd" is passed to a parameter that cannot be negative.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 log.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-log-log_init-Check-for-dup-return-code.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130412/58a7c65a/attachment.bin>


More information about the CRIU mailing list