commit | 778721510e84209f78e31e2ccb296ae36d623f5e | [log] [tgz] |
---|---|---|
author | Bob Peterson <[email protected]> | Tue Nov 24 10:44:36 2020 -0500 |
committer | Andreas Gruenbacher <[email protected]> | Wed Nov 25 18:10:55 2020 +0100 |
tree | 96707ce63859f1cd210625c8b9da7701190d907a | |
parent | 515b269d5bd29a986d5e1c0a0cba87fa865a48b4 [diff] |
gfs2: check for empty rgrp tree in gfs2_ri_update If gfs2 tries to mount a (corrupt) file system that has no resource groups it still tries to set preferences on the first one, which causes a kernel null pointer dereference. This patch adds a check to function gfs2_ri_update so this condition is detected and reported back as an error. Reported-by: [email protected] Signed-off-by: Bob Peterson <[email protected]> Signed-off-by: Andreas Gruenbacher <[email protected]>