mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Signed-off-by: Stefan Richter <[email protected]>
This commit is contained in:
parent
7baab9acfb
commit
9d23f9e946
1 changed files with 1 additions and 1 deletions
|
|
@ -146,7 +146,7 @@ EXPORT_SYMBOL(fw_iso_buffer_destroy);
|
|||
/* Convert DMA address to offset into virtually contiguous buffer. */
|
||||
size_t fw_iso_buffer_lookup(struct fw_iso_buffer *buffer, dma_addr_t completed)
|
||||
{
|
||||
int i;
|
||||
size_t i;
|
||||
dma_addr_t address;
|
||||
ssize_t offset;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue