I was expecting the vendor specific impl to be aware and make its own
copy if it needs to make modifications to the array. But I can return a copy
to be on the safe side. We can revisit again if it is unnecessary.
I will send the updated patch shortly.
Here is the link to the latest patch:
https://lore.kernel.org/linux-arm-kernel/20220930023443.9463-2-bwicaksono@xxxxxxxxxx/