[PATCH v3] tpm: fix potential NULL pointer access in tpm_del_char_device