[PATCH 5.4 340/462] locking/lockdep: Avoid potential access of invalid memory in lock_class