Merge "icnss: Remove MSA0 permission only when modem is crashed"

This commit is contained in:
Linux Build Service Account 2017-11-29 04:26:04 -08:00 committed by Gerrit - the friendly Code Review server
commit e648f8c78b

View file

@ -2493,7 +2493,8 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
icnss_pr_vdbg("Modem-Notify: event %lu\n", code);
if (code == SUBSYS_AFTER_SHUTDOWN) {
if (code == SUBSYS_AFTER_SHUTDOWN &&
notif->crashed == CRASH_STATUS_ERR_FATAL) {
ret = icnss_assign_msa_perm_all(priv,
ICNSS_MSA_PERM_DUMP_COLLECT);
if (!ret) {