]> Git Repo - linux.git/commit - fs/ext4/xattr.c
ext4: avoid unneeded lookup when xattr name is invalid
authorZhang Zhen <[email protected]>
Mon, 12 May 2014 13:57:59 +0000 (09:57 -0400)
committerTheodore Ts'o <[email protected]>
Mon, 12 May 2014 13:57:59 +0000 (09:57 -0400)
commit230b8c1a7b388ac5e06549a7dbe083568875804e
treed1291f679566ab473016a687e17c4155c7f3f6ea
parent1c8349a17137b93f0a83f276c764a6df1b9a116e
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 <[email protected]>
Signed-off-by: "Theodore Ts'o" <[email protected]>
fs/ext4/xattr.c
This page took 0.072604 seconds and 4 git commands to generate.