]> git.baikalelectronics.ru Git - kernel.git/commit
ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2019 02:46:11 +0000 (22:46 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 2 May 2019 06:24:50 +0000 (02:24 -0400)
commit319cd7200b464de328f51f4c086a4b6f985dc70b
tree18bb48e2467b9eaa1cc2f52646b5ce0d2dd7bd3f
parentad5c2eb05041a2b53c16577f254f3dbd24e080d0
ufs: fix braino in ufs_get_inode_gid() for solaris UFS flavour

To choose whether to pick the GID from the old (16bit) or new (32bit)
field, we should check if the old gid field is set to 0xffff.  Mainline
checks the old *UID* field instead - cut'n'paste from the corresponding
code in ufs_get_inode_uid().

Fixes: 10dc8a700e67
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/util.h