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