diff options
author | Stephen Warren <swarren@nvidia.com> | 2014-02-03 13:20:59 -0700 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-02-19 09:47:33 -0500 |
commit | bd6fb31fab1523ecac1aaf7af574868a26169dc6 (patch) | |
tree | 00a06ba1a3cc5409caf3e45f188528809fe86337 /CREDITS | |
parent | 16f4d9335fe18cf3b57e400baf7687f1c390fd8c (diff) | |
download | u-boot-imx-bd6fb31fab1523ecac1aaf7af574868a26169dc6.zip u-boot-imx-bd6fb31fab1523ecac1aaf7af574868a26169dc6.tar.gz u-boot-imx-bd6fb31fab1523ecac1aaf7af574868a26169dc6.tar.bz2 |
fs: fix generic save command implementation
Fix a few issues with the generic "save" shell command, and fs_write()
function.
1) fstypes[].write wasn't filled in for some file-systems, and isn't
checked when used, which could cause crashes/... if executing save
on e.g. fat/ext filesystems.
2) fs_write() requires the length argument to be non-zero, since it needs
to know exactly how many bytes to write. Adjust the comments and code
according to this.
3) fs_write() wasn't prototyped in <fs.h> like other generic functions;
other code should be able to call this directly rather than invoking
the "save" shell command.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions