]> git.baikalelectronics.ru Git - kernel.git/commit
pefile: Fix the failure of calculation for digest
authorLans Zhang <jia.zhang@windriver.com>
Sun, 17 Jul 2016 23:10:47 +0000 (00:10 +0100)
committerJames Morris <james.l.morris@oracle.com>
Mon, 18 Jul 2016 02:19:46 +0000 (12:19 +1000)
commit77e228498792de490891b8805d4188be466c49ab
tree21be8fee8cab58c36dda207eb2950e1678ebdbe7
parente7dc7bceca90708b9efb8602c5bfeadd04cf2fa9
pefile: Fix the failure of calculation for digest

Commit 8fabb42d53 forgot to set digest_len and thus cause the following
error reported by kexec when launching a crash kernel:

kexec_file_load failed: Bad message

Fixes: 8fabb42d53 (KEYS: Generalise system_verify_data() to provide access to internal content)
Signed-off-by: Lans Zhang <jia.zhang@windriver.com>
Tested-by: Dave Young <dyoung@redhat.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Vivek Goyal <vgoyal@redhat.com>
cc: kexec@lists.infradead.org
cc: linux-crypto@vger.kernel.org
Signed-off-by: James Morris <james.l.morris@oracle.com>
crypto/asymmetric_keys/mscode_parser.c