diff options
-rw-r--r-- | drivers/infiniband/hw/ipath/ipath_diag.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_diag.c b/drivers/infiniband/hw/ipath/ipath_diag.c index d7f17f2a436c..8a0425e98b5f 100644 --- a/drivers/infiniband/hw/ipath/ipath_diag.c +++ b/drivers/infiniband/hw/ipath/ipath_diag.c | |||
@@ -115,7 +115,7 @@ static int ipath_read_umem64(struct ipath_devdata *dd, void __user *uaddr, | |||
115 | goto bail; | 115 | goto bail; |
116 | } | 116 | } |
117 | reg_addr++; | 117 | reg_addr++; |
118 | uaddr++; | 118 | uaddr += sizeof(u64); |
119 | } | 119 | } |
120 | ret = 0; | 120 | ret = 0; |
121 | bail: | 121 | bail: |
@@ -154,7 +154,7 @@ static int ipath_write_umem64(struct ipath_devdata *dd, void __iomem *caddr, | |||
154 | writeq(data, reg_addr); | 154 | writeq(data, reg_addr); |
155 | 155 | ||
156 | reg_addr++; | 156 | reg_addr++; |
157 | uaddr++; | 157 | uaddr += sizeof(u64); |
158 | } | 158 | } |
159 | ret = 0; | 159 | ret = 0; |
160 | bail: | 160 | bail: |
@@ -192,7 +192,8 @@ static int ipath_read_umem32(struct ipath_devdata *dd, void __user *uaddr, | |||
192 | } | 192 | } |
193 | 193 | ||
194 | reg_addr++; | 194 | reg_addr++; |
195 | uaddr++; | 195 | uaddr += sizeof(u32); |
196 | |||
196 | } | 197 | } |
197 | ret = 0; | 198 | ret = 0; |
198 | bail: | 199 | bail: |
@@ -231,7 +232,7 @@ static int ipath_write_umem32(struct ipath_devdata *dd, void __iomem *caddr, | |||
231 | writel(data, reg_addr); | 232 | writel(data, reg_addr); |
232 | 233 | ||
233 | reg_addr++; | 234 | reg_addr++; |
234 | uaddr++; | 235 | uaddr += sizeof(u32); |
235 | } | 236 | } |
236 | ret = 0; | 237 | ret = 0; |
237 | bail: | 238 | bail: |