verity: embed hash_desc instead of allocating it

This simplifies the code and saves a level of indirection.

I also discovered a leak in one of the dm_bht_create error paths
which is also fixed by this change.

BUG=chromium-os:9752
TEST=Ran unit tests from dm-verity.git.
     Ran platform_DMVerityCorruption and platform_DMVerityBitCorruption.
TESTED_ON=Alex

Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
kernel.git Reviewed-on: http://gerrit.chromium.org/gerrit/5673

Code has already been reviewed and committed to kernel.git.

Change-Id: I52903c7c8a045d79c2bffa71f97811f0198826b9
Signed-off-by: Mandeep Singh Baines <msb@chromium.org>
Reviewed-on: http://gerrit.chromium.org/gerrit/6779
Reviewed-by: Will Drewry <wad@chromium.org>
2 files changed