Whamcloud - gitweb
LU-17673 obdclass: properly free opts string 50/54650/2
authorJames Simmons <jsimmons@infradead.org>
Tue, 2 Apr 2024 22:24:59 +0000 (18:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Apr 2024 15:39:50 +0000 (15:39 +0000)
commit53c3585ac3b616443295b2413eace75ded00552b
tree0a5c68940c1bc035ceb819294fef2f4863d63a4b
parent37e1316050c93e5233f77ebcd399a8272b989605
LU-17673 obdclass: properly free opts string

With lmd_parse() rework being based on the llite match_table work
it inherited the same memory leak. Save the opts pointer to be
used bu kfree at the end.

Fixes: 415fa27540 ("LU-9325 obdclass: use match_table for server mount options")
Test-Parameters: trivial
Change-Id: I016f39f1512118486a0dc119ab075a1408b2a709
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54650
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/obd_mount.c