Unverified Commit d606c904 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!13403 some bugfix of ksmbd smb2_open()

parents 5d73ae1b 18734abc
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -3052,8 +3052,11 @@ int smb2_open(struct ksmbd_work *work)
							sizeof(struct smb_acl) +
							sizeof(struct smb_ace) * ace_num * 2,
							GFP_KERNEL);
					if (!pntsd)
					if (!pntsd) {
						posix_acl_release(fattr.cf_acls);
						posix_acl_release(fattr.cf_dacls);
						goto err_out;
					}

					rc = build_sec_desc(pntsd, NULL, 0,
							    OWNER_SECINFO |
@@ -3363,7 +3366,7 @@ int smb2_open(struct ksmbd_work *work)

	kfree(lc);

	return 0;
	return rc;
}

static int readdir_info_level_struct_sz(int info_level)