Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/bbd42c36769a
branches:  netbsd-6
changeset: 776778:bbd42c36769a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Nov 09 07:02:57 2014 +0000

description:
Pull up following revision(s) (requested by manu in ticket #1177):
        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 0f5af4e96e0a -r bbd42c36769a lib/libperfuse/ops.c
--- a/lib/libperfuse/ops.c      Sun Nov 09 06:53:32 2014 +0000
+++ b/lib/libperfuse/ops.c      Sun Nov 09 07:02:57 2014 +0000
@@ -1,4 +1,4 @@
-/*  $NetBSD: ops.c,v 1.50.2.15 2014/11/09 06:29:22 msaitoh Exp $ */
+/*  $NetBSD: ops.c,v 1.50.2.16 2014/11/09 07:02:57 msaitoh Exp $ */
 
 /*-
  *  Copyright (c) 2010-2011 Emmanuel Dreyfus. All rights reserved.
@@ -3623,9 +3623,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