vfs: add missing check for __O_TMPFILE in fcntl_init()
authorZheng Liu <gnehzuil.liu@gmail.com>
Thu, 25 Jul 2013 00:13:19 +0000 (08:13 +0800)
committerStricted <info@stricted.net>
Tue, 6 Aug 2019 11:33:34 +0000 (11:33 +0000)
commitf17085e13588734e5ca07df317ef37926b9adc65
tree2455d541e0ab6ae6c194ea82eee2f4cd9b680a43
parent949cd816e20d3055f51a1f9c33be465398c40fc2
vfs: add missing check for __O_TMPFILE in fcntl_init()

As comment in include/uapi/asm-generic/fcntl.h described, when
introducing new O_* bits, we need to check its uniqueness in
fcntl_init().  But __O_TMPFILE bit is missing.  So fix it.

Change-Id: I372d41d2bc15b007595eaf763e200c4c06de177f
Signed-off-by: Zheng Liu <wenqing.lz@taobao.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fcntl.c