fs: don't pass NULL dev_desc to most filesystems
authorStephen Warren <swarren@nvidia.com>
Mon, 3 Feb 2014 20:21:01 +0000 (13:21 -0700)
committerTom Rini <trini@ti.com>
Wed, 19 Feb 2014 14:47:33 +0000 (09:47 -0500)
commit377202b5604e9e17074955538dc8081169a43137
tree587d0b9fe81e4b6c25fff09a2a82db7973033ba9
parent6152916a95af299e5b3061bbd43418e2b73295d0
fs: don't pass NULL dev_desc to most filesystems

FAT and ext4 expect that the passed in block device descriptor not be
NULL. This causes problems on sandbox, where get_device_and_partition()
succeeds for the "host" device, yet passes back a NULL device descriptor.
Add special handling for this situation, so that the generic filesystem
commands operate as expected on sandbox.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
fs/fs.c