浏览代码

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: Frank Haverkamp <haver@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Frank Haverkamp 11 年之前
父节点
当前提交
a45a0258d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/misc/genwqe/card_utils.c

+ 1 - 1
drivers/misc/genwqe/card_utils.c

@@ -59,7 +59,7 @@ int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val)
 	if (cd->mmio == NULL)
 	if (cd->mmio == NULL)
 		return -EIO;
 		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;
 	return 0;
 }
 }