[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Minios-devel] [UNIKRAFT PATCH] lib/ukswrand: Fix reading from devices
- To: minios-devel@xxxxxxxxxxxxx
- From: Costin Lupu <costin.lupu@xxxxxxxxx>
- Date: Tue, 3 Sep 2019 11:12:50 +0300
- Cc: Costin Lupu <costin.lup@xxxxxxxxx>, vlad_andrei.badoiu@xxxxxxxxxxxxxxx
- Delivery-date: Tue, 03 Sep 2019 08:13:08 +0000
- Ironport-phdr: 9a23:pYlDuxcMLy5me54TmjsPE4cJlGMj4u6mDksu8pMizoh2WeGdxcSzYR7h7PlgxGXEQZ/co6odzbaP6ea5BjVLuMzf+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAiooQnLq8Ubg5ZuJqksxhfXo3ZDZvhby35vKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmTrJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4qJ2QxLmlCsLKzg0+3zRh8dtjqxUvQihqgR/zYDKfY+bOvlwcKTGcN8GWWZMRNpdWjZdDo+gaYYEEuoPPfxfr4n4v1YDsxy+BRKwBOPuzD9Dm3n43bAi0+Q8DArL2xAvH9UVsHTIrdX1Mr0eUeSozKnQ0DXOdO9Z2Szn5IjQbxAuuuuAXah3ccfIz0QkCgDLjk2IpID4MD6Zy/4Bvmub4uZ6S+6jlWwqpxt/rzS328shhZTFipgWx13E7yl13og4KNOiREJmbtOoDp1dvDyAOYRsWMMtWWRotT4/yr0BpJG0YjAHyI8ixx7Dc/yHdJWI4g77WOaRPzh4gHVldaqhhxa360egy+n8WtOo31ZRtCZFisTMuWsX2xzJ7ciLUvp9/kG/1jaTzw3f9+5JLV0umafYK5Mt2KA8moQRvEjZECL6gED2g7WXdkUg9Oio8ePnYrD+q5CAMI90kR3+MqUomsClBeQ4LxAOX3WA9Ougz73v51X5QKhRgfEsiKnZt4jWJd4Hqa6hHw9VzoEj5g6jADehy9QYgXgHLFRfdBKDkojpI0rDIP/9DfilglSslC1nyOzBPr3kGp/NNGTMkK/9fbZh7E5R0A8zzdFZ55JVDbEBO+v/VVLvu9zGEBA5Nxe5w+LmCNVmyoMeQniDA6CHP6PUq1OI4fgvI+aUbo8PpDn9M+Ql5+LpjXIhh18debOm0oYPZ3+iGPRpPl+ZbmTtgtsbCmgFpBcxTOvriF2fSjNTfGqyX78h6T0hEo2pEZzDSpqwgLyZxyi3BIdWZmcVQmyLRHLpcYSDQLIAZTyfJudlkycYTv6xRoln0guh5yHgzL8yBe3P5iwe/bb+zMU9s+bUjg0z83pwEtyA+2qWCXlplCUSQGllj+hEvUVhxwLbguBDiPtCGIkL6g==
- Ironport-sdr: hO95MKCPPmtrPLlHumEv4818k9gnqLR5pav82QXqH7C+LTu1yX1u6PbgfYn/nyo5axdK6VpfH8 lFiOA4BKV/Vw==
- List-id: Mini-os development list <minios-devel.lists.xenproject.org>
From: Costin Lupu <costin.lup@xxxxxxxxx>
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
lib/ukswrand/mwc_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ukswrand/mwc_dev.c b/lib/ukswrand/mwc_dev.c
index 5a9c0d49..5a4cb100 100644
--- a/lib/ukswrand/mwc_dev.c
+++ b/lib/ukswrand/mwc_dev.c
@@ -60,7 +60,7 @@ int dev_random_read(struct device *dev __unused, struct uio
*uio,
chunk_size = count % step;
for (i = 0; i < count - chunk_size; i += step)
- *((__u32 *)buf + i) = uk_swrand_randr();
+ *(buf + i) = uk_swrand_randr();
/* fill the remaining bytes of the buffer */
if (chunk_size > 0) {
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|