Source-Changes-HG archive

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

[src/netbsd-7]: src/lib/libperfuse Pull up following revision(s) (requested b...



details:   https://anonhg.NetBSD.org/src/rev/a85ca8b44f77
branches:  netbsd-7
changeset: 798480:a85ca8b44f77
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Oct 30 12:38:15 2014 +0000

description:
Pull up following revision(s) (requested by manu in ticket #170):
        lib/libperfuse/ops.c: revision 1.77
Fix invalid free in deletextattr FUSE handler
Do not free FUSE message on error as it was not allocated.

diffstat:

 lib/libperfuse/ops.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (22 lines):

diff -r d3494a7f41b2 -r a85ca8b44f77 lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Thu Oct 30 12:35:21 2014 +0000
+++ b/lib/libperfuse/ops.c      Thu Oct 30 12:38:15 2014 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.66.2.8 2014/10/13 19:00:16 martin Exp $ */
+/*  $NetBSD: ops.c,v 1.66.2.9 2014/10/30 12:38:15 martin Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -3633,9 +3633,11 @@
        (void)strlcpy(np, attrname, attrnamelen);
        
        error = xchg_msg(pu, opc, pm, NO_PAYLOAD_REPLY_LEN, wait_reply);
+       if (error != 0)
+               goto out;
        
        ps->ps_destroy_msg(pm);
-
+out:
        node_rele(opc);
        return error;
 }



Home | Main Index | Thread Index | Old Index