Skip to content

Commit 9c493f7

Browse files
alberandopsiff
authored andcommitted
xfs: fix scrub trace with null pointer in quotacheck
commit 5d94b19 upstream. The quotacheck doesn't initialize sc->ip. Cc: stable@vger.kernel.org # v6.8 Fixes: 21d7500 ("xfs: improve dquot iteration for scrub") Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org> Signed-off-by: Carlos Maiolino <cem@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> (cherry picked from commit 579c5488fe6e31097482cdc15ca2e4ae53b5c0b6)
1 parent 5cad094 commit 9c493f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/xfs/scrub/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ DECLARE_EVENT_CLASS(xchk_dqiter_class,
467467
__field(xfs_exntst_t, state)
468468
),
469469
TP_fast_assign(
470-
__entry->dev = cursor->sc->ip->i_mount->m_super->s_dev;
470+
__entry->dev = cursor->sc->mp->m_super->s_dev;
471471
__entry->dqtype = cursor->dqtype;
472472
__entry->ino = cursor->quota_ip->i_ino;
473473
__entry->cur_id = cursor->id;

0 commit comments

Comments
 (0)