fs/vfs: return ERROR when ioctl is not implemented
authorEunBong Song <eunb.song@samsung.com>
Mon, 3 Apr 2017 02:36:38 +0000 (11:36 +0900)
committerHeesub 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

index 93597d2..5adab2f 100644 (file)
@@ -152,6 +152,9 @@ int ioctl(int fd, int req, unsigned long arg)
                        err = -ret;
                        goto errout;
                }
+       } else {
+               err = ENOTTY;
+               goto errout;
        }
 
        return ret;