Commit b16aadf4 authored by Lei Wen's avatar Lei Wen Committed by Wolfgang Denk
Browse files

disk/part.c: fix potential stack overflow bug

If the param pass to get_dev is not the one defined in the block_drvr,
it could make uboot becomes unstable, for it would continue run after
search complete the block_drvr table.
Signed-off-by: default avatarLei Wen <>
parent 9eeaa8e6
......@@ -84,7 +84,7 @@ block_dev_desc_t *get_dev(char* ifname, int dev)
name += gd->reloc_off;
while (name) {
while (drvr->name) {
name = drvr->name;
reloc_get_dev = drvr->get_dev;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment