[CRIU] [PATCH 1/4] restore: restore_priv_vma_content -- Use close_safe

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


fd might be negative, so use close_safe for it, and
to be consistent lets use the same for close_safe.

CID 996214 (#1 of 1): Argument cannot be negative (NEGATIVE_RETURNS)
10. negative_returns: "fd" is passed to a parameter that cannot be negative.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-restore.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-restore-restore_priv_vma_content-Use-close_safe.patch
Type: text/x-patch
Size: 306 bytes
Desc: not available
URL: <http://lists.openvz.org/pipermail/criu/attachments/20130412/e05a9af4/attachment.bin>


More information about the CRIU mailing list