Andrew Price 30aecae86e gfs2: Fix memory leak when gfs2meta's fs_context is freed
gfs2 and gfs2meta share an ->init_fs_context function which allocates an
args structure stored in fc->fs_private. gfs2 registers a ->free
function to free this memory when the fs_context is cleaned up, but
there was not one registered for gfs2meta, causing a leak.

Register a ->free function for gfs2meta. The existing gfs2_fc_free
function does what we need.

Reported-by: syzbot+c2fdfd2b783754878fb6@syzkaller.appspotmail.com
Fixes: 1f52aa08d12f ("gfs2: Convert gfs2 to fs_context")
Signed-off-by: Andrew Price <anprice@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
2019-10-24 16:20:43 +02:00
..
2019-07-03 14:45:18 +02:00
2019-09-04 20:22:17 +02:00
2019-09-04 20:22:17 +02:00
2019-09-04 20:22:17 +02:00
2019-09-03 09:42:41 +02:00
2019-06-27 21:03:53 +02:00
2019-06-08 12:52:42 -07:00
2019-09-03 09:42:41 +02:00
2019-09-18 22:47:05 -04:00
2019-06-27 21:03:53 +02:00
2019-09-03 09:42:41 +02:00