mirror of
https://github.com/apache/nuttx.git
synced 2026-10-16 18:49:05 +00:00
arch: cxd56xx: Fix parameter check of hostif buffer
Fix a parameter check of the buffer attribute in opening hostif driver.
This commit is contained in:
parent
db9c94962b
commit
6b5a4cbfd3
1 changed files with 1 additions and 1 deletions
|
|
@ -211,7 +211,7 @@ static int hif_open(FAR struct file *filep)
|
|||
}
|
||||
|
||||
if ((filep->f_oflags & O_WRONLY) &&
|
||||
((priv->flags & HOSTIF_BUFF_ATTR_WRITE) != 0))
|
||||
((priv->flags & HOSTIF_BUFF_ATTR_READ) != 0))
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue