Skip to content

Commit a45a025

Browse files
fhaverkampgregkh
authored andcommitted
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>
1 parent 632fefa commit a45a025

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/misc/genwqe/card_utils.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ int __genwqe_writeq(struct genwqe_dev *cd, u64 byte_offs, u64 val)
5959
if (cd->mmio == NULL)
6060
return -EIO;
6161

62-
__raw_writeq((__force u32)cpu_to_be64(val), cd->mmio + byte_offs);
62+
__raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs);
6363
return 0;
6464
}
6565

0 commit comments

Comments
 (0)