Merge "hal: spk_protection: fix crash due to invalid param sent"