]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4: avoid unneeded lookup when xattr name is invalid
authorZhang Zhen <zhenzhang.zhang@huawei.com>
Mon, 12 May 2014 13:57:59 +0000 (09:57 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 12 May 2014 13:57:59 +0000 (09:57 -0400)
commit231bd51476c491436f8d079133c71e4fed2de44b
treed1291f679566ab473016a687e17c4155c7f3f6ea
parentbf97e181492be1d7d22ebc3958261c625a0edb42
ext4: avoid unneeded lookup when xattr name is invalid

In ext4_xattr_set_handle() we have checked the xattr name's length. So
we should also check it in ext4_xattr_get() to avoid unneeded lookup
caused by invalid name.

Signed-off-by: Zhang Zhen <zhenzhang.zhang@huawei.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/xattr.c