NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

lib/44152: kvm_close not returning -1 on failure.



>Number:         44152
>Category:       lib
>Synopsis:       kvm_close not returning -1 on failure.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 26 07:45:00 +0000 2010
>Originator:     Henning Petersen
>Release:        NetBSD-current
>Organization:
>Environment:
>Description:
Function kvm_close is not returning -1 on failure.
>How-To-Repeat:

>Fix:
diff -u -r1.96 kvm.c
--- lib/libkvm/kvm.c    23 Oct 2010 14:34:12 -0000      1.96
+++ lib/libkvm/kvm.c    26 Nov 2010 05:04:38 -0000
@@ -759,7 +759,7 @@
                free(kd->iobuf);
        free(kd);
 
-       return (0);
+       return (error);
 }
 
 int



Home | Main Index | Thread Index | Old Index