disk/part.c: fix potential stack overflow bug
authorLei Wen <leiwen@marvell.com>
Tue, 15 Feb 2011 08:56:40 +0000 (16:56 +0800)
committerWolfgang Denk <wd@denx.de>
Tue, 12 Apr 2011 20:58:35 +0000 (22:58 +0200)
commitb16aadf411280fc426d7488ddd8a5b2038b7194d
tree230cf807873574dcd0e231488a1a64a8fc721d11
parent9eeaa8e66ce1b34ddac9ebb1f31043f473a7c176
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: Lei Wen <leiwen@marvell.com>
disk/part.c