[PATCH openEuler-1.0-LTS 082/149] tpm: fix error return code in tpm2_get_cc_attrs_tbl()