Re: [PATCH 2/3] [RESEND] ipr: Fix incorrect trace indexing

2015-07-16 Thread Martin K. Petersen
> "Brian" == Brian King writes: Brian> When ipr's internal driver trace was changed to an atomic, a Brian> signed/unsigned bug slipped in which results in us indexing Brian> backwards in our memory buffer writing on memory that does not Brian> belong to us. This patch fixes this by removing t

[PATCH 2/3] [RESEND] ipr: Fix incorrect trace indexing

2015-07-14 Thread Brian King
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