Source-Changes-HG archive

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

[src/trunk]: src/sys/kern If the compat code successfully handled an option, ...



details:   https://anonhg.NetBSD.org/src/rev/cf526ad865a9
branches:  trunk
changeset: 450449:cf526ad865a9
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Mon Apr 15 03:58:29 2019 +0000

description:
If the compat code successfully handled an option, don't return an error.

diffstat:

 sys/kern/uipc_socket.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 0976b9b8e059 -r cf526ad865a9 sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Mon Apr 15 02:35:28 2019 +0000
+++ b/sys/kern/uipc_socket.c    Mon Apr 15 03:58:29 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.276 2019/04/15 02:35:28 pgoyette Exp $       */
+/*     $NetBSD: uipc_socket.c,v 1.277 2019/04/15 03:58:29 pgoyette Exp $       */
 
 /*
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.276 2019/04/15 02:35:28 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.277 2019/04/15 03:58:29 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1864,6 +1864,8 @@
                break;
 
        default:
+               if (error == 0)
+                       break;
                solock(so);
                error = ENOPROTOOPT;
                break;



Home | Main Index | Thread Index | Old Index