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/ba4c8603ae6a
branches:  trunk
changeset: 331011:ba4c8603ae6a
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 22e9fa758997 -r ba4c8603ae6a 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