diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2012-06-13 16:28:24 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-06-17 13:35:26 -0400 |
commit | 9d23f9e946ad757344792a20ba5152f3a921688b (patch) | |
tree | 78150f984dc021fc2219e0183bed6f6fe3f9c1f5 /drivers/firewire | |
parent | 7baab9acfb25934a32541d617cbc676abd1fbf5b (diff) |
firewire: core: fix multichannel IR with buffers larger than 2 GB
With a 32-bit i, computing i<<PAGE_SHIFT might result in
an overflow and in an eventual sign-extension.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r-- | drivers/firewire/core-iso.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c index 8382e27e9a27..38c0aa60b2cb 100644 --- a/drivers/firewire/core-iso.c +++ b/drivers/firewire/core-iso.c | |||
@@ -146,7 +146,7 @@ EXPORT_SYMBOL(fw_iso_buffer_destroy); | |||
146 | /* Convert DMA address to offset into virtually contiguous buffer. */ | 146 | /* Convert DMA address to offset into virtually contiguous buffer. */ |
147 | size_t fw_iso_buffer_lookup(struct fw_iso_buffer *buffer, dma_addr_t completed) | 147 | size_t fw_iso_buffer_lookup(struct fw_iso_buffer *buffer, dma_addr_t completed) |
148 | { | 148 | { |
149 | int i; | 149 | size_t i; |
150 | dma_addr_t address; | 150 | dma_addr_t address; |
151 | ssize_t offset; | 151 | ssize_t offset; |
152 | 152 | ||