fs/hfsplus: move xattr_name allocation in hfsplus_setxattr()
authorFabian Frederick <fabf@skynet.be>
Thu, 16 Apr 2015 19:47:01 +0000 (12:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:05 +0000 (09:04 -0400)
commit5e61473ea9f1ed6537ffaf6bf1cb60655f0d1b2c
tree4ee3f0645b0a060a78945e8ce214c75f31fffa22
parenta3cef4cd6886c755d2148739699751900b51a365
fs/hfsplus: move xattr_name allocation in hfsplus_setxattr()

security/trusted/user/osx setxattr did the same
xattr_name initialization. Move that operation in hfsplus_setxattr().

Tested with security/trusted/user getfattr/setfattr

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfsplus/xattr.c
fs/hfsplus/xattr.h
fs/hfsplus/xattr_security.c
fs/hfsplus/xattr_trusted.c
fs/hfsplus/xattr_user.c