]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: unzip: Use map_sysmem() with buffers in the gzwrite command
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Wed, 28 Jan 2026 19:41:04 +0000 (20:41 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 6 Feb 2026 15:29:50 +0000 (09:29 -0600)
commitf2c704c0e8aac1b846fd55b7178151b2c879e185
tree721f2356bec88c665e8706c4cde95cd499c47182
parent02ffe4a0c9d2885899648a5ffe22090e6c7ff9a5
cmd: unzip: Use map_sysmem() with buffers in the gzwrite command

The current implementation casts an address to a pointer. Make it more
sandbox-friendly by using map_sysmem().

Convert 'addr' variable to unsigned long, as that is the return type of
hextoul() and address parameter type of map_sysmem().

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
cmd/unzip.c