diff --git a/security/pfe/pfk_ice.c b/security/pfe/pfk_ice.c index f0bbf9c9a053..16ed5162665d 100644 --- a/security/pfe/pfk_ice.c +++ b/security/pfe/pfk_ice.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved. +/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -138,6 +138,7 @@ int qti_pfk_ice_set_key(uint32_t index, uint8_t *key, uint8_t *salt, if (ret1) pr_err("%s: Invalidate Key Error: %d\n", __func__, ret1); + goto out; } ret = qcom_ice_setup_ice_hw((const char *)s_type, false);