projects
/
rtos
/
tinyara.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a5b0f
)
fs/vfs: return ERROR when ioctl is not implemented
author
EunBong Song
<eunb.song@samsung.com>
Mon, 3 Apr 2017 02:36:38 +0000
(11:36 +0900)
committer
Heesub Shin
<heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:07 +0000
(12:02 +0900)
VFS layer should return ERROR when the underlying file system
implementation does not provide .ioctl callback.
Change-Id: If2043070f2c63b9f560856c56f89b353b343abf7
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/fs/vfs/fs_ioctl.c
patch
|
blob
|
history
diff --git
a/os/fs/vfs/fs_ioctl.c
b/os/fs/vfs/fs_ioctl.c
index
93597d2
..
5adab2f
100644
(file)
--- a/
os/fs/vfs/fs_ioctl.c
+++ b/
os/fs/vfs/fs_ioctl.c
@@
-152,6
+152,9
@@
int ioctl(int fd, int req, unsigned long arg)
err = -ret;
goto errout;
}
+ } else {
+ err = ENOTTY;
+ goto errout;
}
return ret;