Commit 4ead42c5 authored by Pat Gefre's avatar Pat Gefre Committed by Tony Luck

[IA64-SGI] BUG_ON test was backwards

Signed-off-by: default avatarPatrick Gefre <pfg@sgi.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 42ae05cd
......@@ -79,9 +79,9 @@ bte_result_t bte_copy(u64 src, u64 dest, u64 len, u64 mode, void *notification)
return BTE_SUCCESS;
}
BUG_ON(!((len & L1_CACHE_MASK) ||
(src & L1_CACHE_MASK) || (dest & L1_CACHE_MASK)));
BUG_ON(len < ((BTE_LEN_MASK + 1) << L1_CACHE_SHIFT));
BUG_ON((len & L1_CACHE_MASK) ||
(src & L1_CACHE_MASK) || (dest & L1_CACHE_MASK));
BUG_ON(!(len < ((BTE_LEN_MASK + 1) << L1_CACHE_SHIFT)));
if (mode & BTE_USE_DEST) {
/* try remote then local */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment