]> git.sur5r.net Git - u-boot/blobdiff - common/cmd_mem.c
disk: Fix possible out-of-bounds access in part_efi.c
[u-boot] / common / cmd_mem.c
index 64dd76a0f5dfbb5a35b52a4cd14b1c8c80a5d5b3..6df00b15d3f1823a3df9be934efea0c79326f89a 100644 (file)
@@ -445,7 +445,7 @@ static int do_mem_cp(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 #endif
 
        bytes = size * count;
-       buf = map_sysmem(addr, bytes);
+       buf = map_sysmem(dest, bytes);
        src = map_sysmem(addr, bytes);
        while (count-- > 0) {
                if (size == 4)