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