projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
disk/part.c: fix potential stack overflow bug
[platform/kernel/u-boot.git]
/
disk
/
part.c
diff --git
a/disk/part.c
b/disk/part.c
index
13723f2
..
f07a17f
100644
(file)
--- a/
disk/part.c
+++ b/
disk/part.c
@@
-84,7
+84,7
@@
block_dev_desc_t *get_dev(char* ifname, int dev)
#ifdef CONFIG_NEEDS_MANUAL_RELOC
name += gd->reloc_off;
#endif
- while (name) {
+ while (
drvr->
name) {
name = drvr->name;
reloc_get_dev = drvr->get_dev;
#ifdef CONFIG_NEEDS_MANUAL_RELOC