[PATCH 5.15 673/846] tpm: fix potential NULL pointer access in tpm_del_char_device