-
由 Wenwen Wang 提交于
mainline inclusion from mainline-v5.4 commit 1e672e3644940d83bd94e7cb46bac6bb3627de02 category: bugfix bugzilla: 23341 CVE: NA ------------------------------------------------- In nfs4_try_migration(), if nfs4_begin_drain_session() fails, the previously allocated 'page' and 'locations' are not deallocated, leading to memory leaks. To fix this issue, go to the 'out' label to free 'page' and 'locations' before returning the error. Signed-off-by: NWenwen Wang <wenwen@cs.uga.edu> Signed-off-by: NAnna Schumaker <Anna.Schumaker@Netapp.com> v1->v2: add bugzilla id. Signed-off-by: NZhang Xiaoxu <zhangxiaoxu5@huawei.com> Reviewed-by: Nzhangyi (F) <yi.zhang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
8133ffd0