cifsd: fix memleak in ksmbd_vfs_stream_read()
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 29 May 2021 08:20:57 +0000 (16:20 +0800)
committerNamjae Jeon <namjae.jeon@samsung.com>
Mon, 31 May 2021 04:52:59 +0000 (13:52 +0900)
commit673b9ba7a1404fa5beda936b8ad509b70a516b52
treef7d3bf64bcc26b829c38ef5106bad897021383c5
parent113ef68d47f5d36611c16a6ef4bd2a837aa344ab
cifsd: fix memleak in ksmbd_vfs_stream_read()

Before ksmbd_vfs_stream_read() return, memory allocate in
ksmbd_vfs_getcasexattr() need be freed.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifsd/vfs.c