diff options
-rw-r--r-- | drivers/char/hw_random/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/hw_random/core.c b/drivers/char/hw_random/core.c index 5c2d13c6e189..8b7d56a0fe3a 100644 --- a/drivers/char/hw_random/core.c +++ b/drivers/char/hw_random/core.c | |||
@@ -53,7 +53,8 @@ static struct hwrng *current_rng; | |||
53 | static LIST_HEAD(rng_list); | 53 | static LIST_HEAD(rng_list); |
54 | static DEFINE_MUTEX(rng_mutex); | 54 | static DEFINE_MUTEX(rng_mutex); |
55 | static int data_avail; | 55 | static int data_avail; |
56 | static u8 rng_buffer[SMP_CACHE_BYTES] __cacheline_aligned; | 56 | static u8 rng_buffer[SMP_CACHE_BYTES < 32 ? 32 : SMP_CACHE_BYTES] |
57 | __cacheline_aligned; | ||
57 | 58 | ||
58 | static inline int hwrng_init(struct hwrng *rng) | 59 | static inline int hwrng_init(struct hwrng *rng) |
59 | { | 60 | { |