Re: [PATCH v2 19/39] read: Use map_sysmem() with buffers in the read command

2024-08-08 Thread Ilias Apalodimas
On Tue, 6 Aug 2024 at 15:59, Simon Glass wrote: > > The current implementation casts an address to a pointer. Make it more > sandbox-friendly by using map_sysmem(). Isn't the code already using map_sysmem? All I see is some fixes for unmapping it and a rename > > Rename the variable to 'ptr' sin

[PATCH v2 19/39] read: Use map_sysmem() with buffers in the read command

2024-08-06 Thread Simon Glass
The current implementation casts an address to a pointer. Make it more sandbox-friendly by using map_sysmem(). Rename the variable to 'ptr' since it is a pointer, not an address. Signed-off-by: Simon Glass --- (no changes since v1) cmd/read.c | 10 ++ 1 file changed, 6 insertions(+),