ANDROID: dm: android-verity: fix table_make_digest() error handling
authorGreg Hackmann <ghackmann@google.com>
Mon, 14 Nov 2016 17:48:02 +0000 (09:48 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 18 Dec 2017 15:41:22 +0000 (21:11 +0530)
commit9d8757c653f69f5d2841153985837ec2990feeb5
tree04eaed004909d36342becaa7933fa9a1f5ad98af
parent539de6b39dcce96f93d6bb19439d00f870f8fa3a
ANDROID: dm: android-verity: fix table_make_digest() error handling

If table_make_digest() fails, verify_verity_signature() would try to
pass the returned ERR_PTR() to kfree().

This fixes the smatch error:

drivers/md/dm-android-verity.c:601 verify_verity_signature() error: 'pks' dereferencing possible ERR_PTR()

Change-Id: I9b9b7764b538cb4a5f94337660e9b0f149b139be
Signed-off-by: Greg Hackmann <ghackmann@google.com>
drivers/md/dm-android-verity.c