mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
d0a5fdf4cc
The (struct __prci_data).hw_clks.hws is an array with dynamic elements.
Using struct_size(pd, hw_clks.hws, ARRAY_SIZE(__prci_init_clocks))
instead of sizeof(*pd) to get the correct memory size of
struct __prci_data for sifive/fu540-prci. After applying this
modifications, the kernel runs smoothly with CONFIG_SLAB_FREELIST_RANDOM
enabled on the HiFive unleashed board.
Fixes:
|
||
---|---|---|
.. | ||
fu540-prci.c | ||
Kconfig | ||
Makefile |