Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Frank Haverkamp and committed by
Greg Kroah-Hartman
a45a0258 632fefaf

+1 -1
+1 -1
drivers/misc/genwqe/card_utils.c
··· 59 59 if (cd->mmio == NULL) 60 60 return -EIO; 61 61 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); 63 63 return 0; 64 64 } 65 65