summaryrefslogtreecommitdiff
path: root/include/sound/memalloc.h
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 04:36:37 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-17 04:36:37 +0400
commit6a8c62f3e97fdf184fde60bc99155476e8e9cd55 (patch)
tree71b818d584f79baf1a192df65c758a592a63360d /include/sound/memalloc.h
parentb46d0c46ccaa366a5bb8ac709fdf2bcaa76221fd (diff)
parent319e2e3f63c348a9b66db4667efa73178e18b17d (diff)
downloadlinux-6a8c62f3e97fdf184fde60bc99155476e8e9cd55.tar.xz
Merge 3.13-rc4 into tty-next
We want the fixes in here as well.
Diffstat (limited to 'include/sound/memalloc.h')
-rw-r--r--include/sound/memalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/memalloc.h b/include/sound/memalloc.h
index af9983970417..5f73785f5977 100644
--- a/include/sound/memalloc.h
+++ b/include/sound/memalloc.h
@@ -108,7 +108,7 @@ static inline dma_addr_t snd_sgbuf_get_addr(struct snd_dma_buffer *dmab,
{
struct snd_sg_buf *sgbuf = dmab->private_data;
dma_addr_t addr = sgbuf->table[offset >> PAGE_SHIFT].addr;
- addr &= PAGE_MASK;
+ addr &= ~((dma_addr_t)PAGE_SIZE - 1);
return addr + offset % PAGE_SIZE;
}