From: Allen Hubbe Date: Tue, 11 Aug 2015 08:05:43 +0000 (-0400) Subject: dmaengine: ioatdma: fix u16 overflow in cleanup X-Git-Tag: omap-for-v4.3/fixes-rc1~94^2~65 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5484526ac120eb543e5a28610775f04014814d89;p=pandora-kernel.git dmaengine: ioatdma: fix u16 overflow in cleanup 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 Acked-by: Dave Jiang Signed-off-by: Vinod Koul --- Reading git-diff-tree failed