提交 a45a0258 编写于 作者: F Frank Haverkamp 提交者: Greg Kroah-Hartman

GenWQE: Accidently casting to u32 where u64 is required

Fix a casting to u32 where u64 would be appropriate.
The bad casting made the driver unusable.
Signed-off-by: NFrank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 632fefaf
......@@ -59,7 +59,7 @@ int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val)
if (cd->mmio == NULL)
return -EIO;
__raw_writeq((__force u32)cpu_to_be64(val), cd->mmio + byte_offs);
__raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册