fs/cromfs: Fix faulty DEBUGASSERT() check
The logic being tested is wrong, obviously when accessing file the driver private data has to be valid (open() has been called).
This commit is contained in:
parent
9f8d587b64
commit
30bae2ca47
@ -1153,7 +1153,7 @@ static int cromfs_fstat(FAR const struct file *filep, FAR struct stat *buf)
|
|||||||
|
|
||||||
/* Sanity checks */
|
/* Sanity checks */
|
||||||
|
|
||||||
DEBUGASSERT(filep->f_priv == NULL && filep->f_inode != NULL);
|
DEBUGASSERT(filep->f_priv != NULL && filep->f_inode != NULL);
|
||||||
|
|
||||||
/* Get the mountpoint inode reference from the file structure and the
|
/* Get the mountpoint inode reference from the file structure and the
|
||||||
* volume private data from the inode structure
|
* volume private data from the inode structure
|
||||||
|
Loading…
Reference in New Issue
Block a user