[PATCH 5.16 0840/1039] tpm: fix potential NULL pointer access in tpm_del_char_device