Stefan Hajnoczi
d5eaeefbda
pflash: fix sectors vs bytes confusion in blk_pread_nonzeroes()
...
The following expression is incorrect because blk_pread_nonzeroes()
deals in units of bytes, not sectors:
bytes = MIN(size - offset, BDRV_REQUEST_MAX_SECTORS)
^^^^^^^
BDRV_REQUEST_MAX_BYTES is the appropriate constant.
Fixes: a4b15a8b9ef2 ("pflash: Only read non-zero parts of backend image")
Cc: Xiang Zheng <zhengxiang9@huawei.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240130002712.257815-1-stefanha@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2024-01-30 16:17:59 -05:00
..
2024-01-04 19:55:20 +00:00
2024-01-04 19:55:20 +00:00
2023-12-29 11:17:30 +11:00
2024-01-26 12:23:04 +00:00
2024-01-05 16:20:15 +01:00
2023-11-28 14:27:12 +01:00
2024-01-30 16:17:59 -05:00
2024-01-26 11:34:21 +00:00
2024-01-19 12:28:59 +01:00
2024-01-26 11:30:49 +00:00
2023-12-31 09:11:28 +01:00
2024-01-18 10:43:14 +01:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-01-13 06:48:14 +01:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-01-20 17:22:16 +00:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-01-11 15:19:14 +00:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2023-12-29 11:17:30 +11:00
2024-01-11 19:22:47 +08:00
2024-01-11 11:39:26 +01:00
2023-12-31 09:11:28 +01:00
2024-01-08 10:45:43 -05:00
2024-01-26 11:30:49 +00:00
2024-01-25 14:58:00 +08:00
2023-11-23 14:10:04 +00:00
2024-01-10 18:47:46 +10:00
2023-12-30 07:38:06 +11:00
2024-01-04 19:55:20 +00:00
2024-01-04 19:55:20 +00:00
2024-01-16 14:24:42 +00:00
2024-01-08 10:45:43 -05:00
2024-01-08 10:45:43 -05:00
2024-01-10 18:47:47 +10:00
2023-12-30 07:38:06 +11:00
2023-11-10 18:19:13 +01:00
2024-01-20 17:22:16 +00:00
2024-01-19 12:28:59 +01:00
2023-12-30 07:38:06 +11:00
2023-12-30 07:38:06 +11:00
2024-01-19 12:28:59 +01:00
2023-12-31 09:11:28 +01:00
2024-01-05 16:20:15 +01:00
2024-01-05 16:20:15 +01:00
2023-12-30 07:38:06 +11:00
2024-01-19 12:28:10 +01:00
2023-12-30 07:38:06 +11:00
2023-12-05 13:57:18 +09:00
2024-01-05 13:35:25 +00:00
2024-01-29 08:26:25 +01:00
2024-01-10 18:47:46 +10:00
2023-12-30 07:38:06 +11:00
2024-01-04 09:52:42 +08:00
2023-11-07 08:54:20 +00:00