vfs: fdopen: add missing file stream flags clearing.
authorEunBong Song <eunb.song@samsung.com>
Tue, 4 Jul 2017 06:01:34 +0000 (15:01 +0900)
committerEunBong Song <eunb.song@samsung.com>
Wed, 30 Aug 2017 04:15:43 +0000 (21:15 -0700)
commit59c24ce3c243288e0c7a63778067c11ae6028432
tree216409ed3b8d5ee69b1996bfe2d9023d40511147
parent6c2ccc947df8eda13c0675f16e640cadc92b7cc3
vfs: fdopen: add missing file stream flags clearing.

Clear file stream structure regardless of config options.
Structure clearing is needed as previous use of stream
list entry might leave fs_flags set.
Thia patch comes from nuttx community commit id: b8b9309d

Change-Id: I072757f092cedc179982af736d6d9a48ee90c97b
Signed-off-by: EunBong Song <eunb.song@samsung.com>
os/fs/vfs/fs_fdopen.c