ANDROID: GKI: fix up crc issue in crypto_get_default_null_skcipher()

In commit 0486de3c1b ("crypto: null - Use spin lock instead of
mutex"), the .h files get shuffled around a bit, which causes a CRC
mismatch in crypto_get_default_null_skcipher().  Add back mm.h to the
build to keep the CRC calculations the same.

Bug: 161946584
Fixes: 0486de3c1b ("crypto: null - Use spin lock instead of mutex")
Change-Id: I7d1490944efbbd3bdc99e4116014b5f32ab3d708
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2025-05-06 06:38:56 +00:00
parent 5562e5e9bc
commit edd5c4a4db

View File

@@ -18,6 +18,9 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/spinlock.h>
// CRC fix for e307c54ac819 ("crypto: null - Use spin lock instead of mutex") requires us to put
// back mm.h to preserve a bunch of structure types in the crc generation logic
#include <linux/mm.h>
#include <linux/string.h>
static DEFINE_SPINLOCK(crypto_default_null_skcipher_lock);