Commit 2624b44
ksmbd: fix possible refcount leak in smb2_open()
Reference count of acls will leak when memory allocation fails. Fix this
by adding the missing posix_acl_release().
Fixes: e2f3448 ("cifsd: add server-side procedures for SMB3")
Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 342edb6 commit 2624b44
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2977 | 2977 | | |
2978 | 2978 | | |
2979 | 2979 | | |
2980 | | - | |
| 2980 | + | |
| 2981 | + | |
| 2982 | + | |
2981 | 2983 | | |
| 2984 | + | |
2982 | 2985 | | |
2983 | 2986 | | |
2984 | 2987 | | |
| |||
0 commit comments