diff options
author | Brian King <brking@linux.vnet.ibm.com> | 2015-07-14 11:41:31 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-16 20:51:46 -0700 |
commit | d68c869854ff29a7baa1355470caaf6c999d2008 (patch) | |
tree | 5de96882be927571ebe7fb653af522f7d1fca3cd /Makefile | |
parent | 5bf24594a1d36bc089df0082040facad40a4a6bb (diff) | |
download | lwn-d68c869854ff29a7baa1355470caaf6c999d2008.tar.gz lwn-d68c869854ff29a7baa1355470caaf6c999d2008.zip |
ipr: Fix incorrect trace indexing
commit bb7c54339e6a10ecce5c4961adf5e75b3cf0af30 upstream.
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.
Tested-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Reviewed-by: Wen Xiong <wenxiong@linux.vnet.ibm.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@linux.vnet.ibm.com>
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions