mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-30 16:51:41 +00:00
Fix lock leak.
Reported by: Alex Lyashkov Approved by: re (kib) MFC after: 1 week
This commit is contained in:
parent
0ad2addc9d
commit
5373cf4e34
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225104
@ -1031,14 +1031,14 @@ vop_setextattr {
|
||||
struct ufsmount *ump = VFSTOUFS(mp);
|
||||
int error;
|
||||
|
||||
ufs_extattr_uepm_lock(ump, ap->a_td);
|
||||
|
||||
/*
|
||||
* XXX: No longer a supported way to delete extended attributes.
|
||||
*/
|
||||
if (ap->a_uio == NULL)
|
||||
return (EINVAL);
|
||||
|
||||
ufs_extattr_uepm_lock(ump, ap->a_td);
|
||||
|
||||
error = ufs_extattr_set(ap->a_vp, ap->a_attrnamespace, ap->a_name,
|
||||
ap->a_uio, ap->a_cred, ap->a_td);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user