Loading drivers/soc/qcom/crypto-qti-common.c +9 −9 Original line number Diff line number Diff line Loading @@ -412,7 +412,7 @@ int crypto_qti_keyslot_program(void *priv_data, unsigned int slot, u8 data_unit_mask, int capid) { int err = 0; int err1 = 0, err2 = 0; struct crypto_vops_qti_entry *ice_entry; ice_entry = (struct crypto_vops_qti_entry *) priv_data; Loading @@ -421,19 +421,19 @@ int crypto_qti_keyslot_program(void *priv_data, return -EINVAL; } err = crypto_qti_program_key(ice_entry, key, slot, err1 = crypto_qti_program_key(ice_entry, key, slot, data_unit_mask, capid); if (err) { pr_err("%s: program key failed with error %d\n", __func__, err); err = crypto_qti_invalidate_key(ice_entry, slot); if (err) { if (err1) { pr_err("%s: program key failed with error %d\n", __func__, err1); err2 = crypto_qti_invalidate_key(ice_entry, slot); if (err2) { pr_err("%s: invalidate key failed with error %d\n", __func__, err); return err; __func__, err2); } } return err; return err1; } EXPORT_SYMBOL(crypto_qti_keyslot_program); Loading Loading
drivers/soc/qcom/crypto-qti-common.c +9 −9 Original line number Diff line number Diff line Loading @@ -412,7 +412,7 @@ int crypto_qti_keyslot_program(void *priv_data, unsigned int slot, u8 data_unit_mask, int capid) { int err = 0; int err1 = 0, err2 = 0; struct crypto_vops_qti_entry *ice_entry; ice_entry = (struct crypto_vops_qti_entry *) priv_data; Loading @@ -421,19 +421,19 @@ int crypto_qti_keyslot_program(void *priv_data, return -EINVAL; } err = crypto_qti_program_key(ice_entry, key, slot, err1 = crypto_qti_program_key(ice_entry, key, slot, data_unit_mask, capid); if (err) { pr_err("%s: program key failed with error %d\n", __func__, err); err = crypto_qti_invalidate_key(ice_entry, slot); if (err) { if (err1) { pr_err("%s: program key failed with error %d\n", __func__, err1); err2 = crypto_qti_invalidate_key(ice_entry, slot); if (err2) { pr_err("%s: invalidate key failed with error %d\n", __func__, err); return err; __func__, err2); } } return err; return err1; } EXPORT_SYMBOL(crypto_qti_keyslot_program); Loading