[PATCH 4.14 181/267] tpm: add check after commands attribs tab allocation