git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
870ce49
)
dmaengine: ioatdma: fix u16 overflow in cleanup
author
Allen Hubbe
<Allen.Hubbe@emc.com>
Tue, 11 Aug 2015 08:05:43 +0000
(
04:05
-0400)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 17 Aug 2015 08:05:58 +0000
(13:35 +0530)
If the allocation order is 16, then the u16 count will overflow and wrap
to zero when assigned the value 1 << 16.
Change the type of 'total_descs' to int, so that it is large enough to
store a value equal or greater than 1 << 16.
Signed-off-by: Allen Hubbe <Allen.Hubbe@emc.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/dma_v2.c
patch
|
blob
|
history
diff --cc
drivers/dma/ioat/dma_v2.c
Simple merge