Source-Changes-HG archive

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

[src/riastradh-drm2]: src/sys/external/bsd/drm2/include/drm Negate error code...



details:   https://anonhg.NetBSD.org/src/rev/284e4c63c682
branches:  riastradh-drm2
changeset: 788055:284e4c63c682
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:01:42 2013 +0000

description:
Negate error code in DRM_COPY_{TO,FROM}_USER in drm_copy_netbsd.h.

diffstat:

 sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r e3bd1b8123a1 -r 284e4c63c682 sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h
--- a/sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h       Wed Jul 24 02:01:28 2013 +0000
+++ b/sys/external/bsd/drm2/include/drm/drm_copy_netbsd.h       Wed Jul 24 02:01:42 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: drm_copy_netbsd.h,v 1.1.2.1 2013/07/24 02:00:44 riastradh Exp $        */
+/*     $NetBSD: drm_copy_netbsd.h,v 1.1.2.2 2013/07/24 02:01:42 riastradh Exp $        */
 
 /*-
  * Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -38,13 +38,13 @@
 static inline int
 DRM_COPY_FROM_USER(void *kernel_addr, const void *user_addr, size_t len)
 {
-       return copyin(user_addr, kernel_addr, len);
+       return -copyin(user_addr, kernel_addr, len);
 }
 
 static inline int
 DRM_COPY_TO_USER(const void *kernel_addr, void *user_addr, size_t len)
 {
-       return copyout(kernel_addr, user_addr, len);
+       return -copyout(kernel_addr, user_addr, len);
 }
 
 #endif  /* _DRM_DRM_OS_NETBSD_H_ */



Home | Main Index | Thread Index | Old Index