Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
GenWQE: Accidently casting to u32 where u64 is required
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
fhaverkamp authored and gregkh committed Dec 20, 2013
1 parent 632fefa commit a45a025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/genwqe/card_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit a45a025

Please sign in to comment.