2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>

PR 1587/filesystem
	Coverity Id 35
	* libfs/src/rfs/rtems-rfs-shell.c: Address possible NULL dereference.
This commit is contained in:
Joel Sherrill
2010-06-24 13:28:54 +00:00
parent fc64cf19ae
commit 2aba056637
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2010-06-24 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1587/filesystem
Coverity Id 35
* libfs/src/rfs/rtems-rfs-shell.c: Address possible NULL dereference.
2010-06-23 Chris Johns <chrisj@rtems.org>
PR 1577/filesystem

View File

@@ -738,6 +738,11 @@ rtems_shell_rfs_format (int argc, char* argv[])
}
}
if (!driver) {
printf ("error: no driver name provided\n");
return 1;
}
if (rtems_rfs_format (driver, &config) < 0)
{
printf ("error: format of %s failed: %s\n",