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

This commit is contained in:
riastradh 2014-07-26 21:19:45 +00:00
parent ae23e861e3
commit e44e30710d

View File

@ -872,7 +872,7 @@ radeon_mmap_object(struct drm_device *dev, off_t offset, size_t size,
{
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;