return from xfs_delete_xfs_fs if NULL

This commit is contained in:
Derek Schrock 2020-01-27 21:11:38 -05:00
parent e37fdd8c6e
commit 72bece526b

View File

@ -387,7 +387,12 @@ xfs_create_xfs_fs(mode_t umask, uid_t uid, gid_t gid)
void
xfs_delete_xfs_fs(struct xfs_fs *xfs)
{
if (xfs != NULL && xfs->inode_table != NULL)
if (xfs == NULL)
{
return;
}
if (xfs->inode_table != NULL)
{
size_t i;
for (i = 0 ; i < xfs->inode_count; ++i)