]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: check find_mmc_device return value
authorRabin Vincent <rabin@rab.in>
Sun, 5 Apr 2009 08:00:53 +0000 (13:30 +0530)
committerAndy Fleming <afleming@freescale.com>
Tue, 2 Jun 2009 22:18:56 +0000 (17:18 -0500)
commite85649c7e683faea1ccfddc9fa9abc62f38e4201
treeee1f5c96aba8a19b2567d0f542e787f81a1f13f1
parentac0865ff33870cdf2cd480165045e1bc311e9fa2
mmc: check find_mmc_device return value

find_mmc_device returns NULL if an invalid device number is specified.
Check for this to avoid dereferencing NULL pointers.

Signed-off-by: Rabin Vincent <rabin@rab.in>
common/cmd_mmc.c
drivers/mmc/mmc.c