UBUNTU: SAUCE: Dump stack when X.509 certificates cannot be loaded

BugLink: https://bugs.launchpad.net/bugs/1932029

Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
(cherry picked from commit b5b4085dc5)
(xnox: cherry-pick is from impish:linux SAUCE)
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
This commit is contained in:
Tim Gardner 2016-03-15 06:30:40 -06:00 committed by Stefan Bader
parent a2910fe860
commit 7af8d95299
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ int load_certificate_list(const u8 cert_list[],
if (IS_ERR(key)) {
pr_err("Problem loading in-kernel X.509 certificate (%ld)\n",
PTR_ERR(key));
WARN_ON_ONCE(1);
} else {
pr_notice("Loaded X.509 cert '%s'\n",
key_ref_to_ptr(key)->description);