On 2/1/21 8:25 PM, Dan Carpenter wrote:
> The error handling in this function frees "reg" but it is still on the
> "o2hb_all_regions" list so it will lead to a use after free. The fix
> for this is to only add it to the list after everything has succeeded.
>
Seems we have to clear the bitmap a
The error handling in this function frees "reg" but it is still on the
"o2hb_all_regions" list so it will lead to a use after free. The fix
for this is to only add it to the list after everything has succeeded.
Fixes: 1cf257f51191 ("ocfs2: fix memory leak")
Signed-off-by: Dan Carpenter
---
This
2 matches
Mail list logo