From: Brian King Date: Tue, 14 Jul 2015 16:41:31 +0000 (-0500) Subject: ipr: Fix incorrect trace indexing X-Git-Tag: omap-for-v4.3/fixes-merge-window~152^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb7c54339e6a10ecce5c4961adf5e75b3cf0af30;p=pandora-kernel.git ipr: Fix incorrect trace indexing When ipr's internal driver trace was changed to an atomic, a signed/unsigned bug slipped in which results in us indexing backwards in our memory buffer writing on memory that does not belong to us. This patch fixes this by removing the modulo and instead just mask off the low bits. Cc: Tested-by: Wen Xiong Reviewed-by: Wen Xiong Reviewed-by: Gabriel Krisman Bertazi Signed-off-by: Brian King Reviewed-by: Martin K. Petersen Signed-off-by: James Bottomley --- Reading git-diff-tree failed