]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
GenWQE: Accidently casting to u32 where u64 is required
authorFrank Haverkamp <haver@linux.vnet.ibm.com>
Fri, 20 Dec 2013 19:27:20 +0000 (20:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 19:34:29 +0000 (11:34 -0800)
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>
drivers/misc/genwqe/card_utils.c

index 663157b3a0d4bdf38bfc7137a8f0e474f1220f9e..6b1a6ef9f1a8c3b1348218be489a59ac519d30c5 100644 (file)
@@ -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;
 }