commit | d0f17d3883f1e3f085d38572c2ea8edbd5150172 | [log] [tgz] |
---|---|---|
author | Bob Peterson <[email protected]> | Tue Oct 27 10:10:01 2020 -0500 |
committer | Andreas Gruenbacher <[email protected]> | Thu Oct 29 22:16:36 2020 +0100 |
tree | 97a986f49a518518cbf08e4e2907f743b088c727 | |
parent | 4525c8781ec0701ce824e8bd379ae1b129e26568 [diff] |
gfs2: Free rd_bits later in gfs2_clear_rgrpd to fix use-after-free Function gfs2_clear_rgrpd calls kfree(rgd->rd_bits) before calling return_all_reservations, but return_all_reservations still dereferences rgd->rd_bits in __rs_deltree. Fix that by moving the call to kfree below the call to return_all_reservations. Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>