Source-Changes-HG archive

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

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/radeon Make sure the low bits...



details:   https://anonhg.NetBSD.org/src/rev/e3b5cc73a7aa
branches:  trunk
changeset: 797772:e3b5cc73a7aa
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sat Jul 26 21:19:45 2014 +0000

description:
Make sure the low bits, not the high bits, of the offset are zero!

diffstat:

 sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r da38f041e2d9 -r e3b5cc73a7aa sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c
--- a/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c        Sat Jul 26 21:15:45 2014 +0000
+++ b/sys/external/bsd/drm2/dist/drm/radeon/radeon_ttm.c        Sat Jul 26 21:19:45 2014 +0000
@@ -872,7 +872,7 @@
 {
        struct radeon_device *rdev = dev->dev_private;
 
-       KASSERT(0 == (offset & ~(PAGE_SIZE - 1)));
+       KASSERT(0 == (offset & (PAGE_SIZE - 1)));
 
        if (__predict_false(rdev == NULL))      /* XXX How?? */
                return -EINVAL;



Home | Main Index | Thread Index | Old Index