Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dm zoned: fix potential NULL dereference in dmz_do_reclaim()
This function is supposed to return error pointers so it matches the dmz_get_rnd_zone_for_reclaim() function. The current code could lead to a NULL dereference in dmz_do_reclaim() Fixes: b234c6d ("dm zoned: improve error handling in reclaim") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Dmitry Fomichev <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
- Loading branch information