Whamcloud - gitweb
LU-17684 mdt: lprocfs_mdt_open_files_seq_open() leaks op_data 91/54591/7
authorAlex Zhuravlev <bzzz@whamcloud.com>
Wed, 27 Mar 2024 18:54:01 +0000 (21:54 +0300)
committerOleg Drokin <green@whamcloud.com>
Tue, 23 Apr 2024 19:56:33 +0000 (19:56 +0000)
commit97716cc5ac4756ff3be5c29f071d4c9a48b00df3
tree794fbc22378be1e530a22c9778caa0939d2174b5
parentd2f38ffc02a533cf15181144ea87ec591ab155bf
LU-17684 mdt: lprocfs_mdt_open_files_seq_open() leaks op_data

op_data is allocated in single_open() and paired single_close()
is supposed to free it, but instead seq_release() was used.

same for ldlm_granted_fops.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I91846ea7a2c896cb57b878905db4f3630939a652
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54591
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ldlm/ldlm_resource.c
lustre/mdt/mdt_fs.c