qcacmn: Fix possible buffer overflow in regulatory api

Check for channel list size before accessing it to avoid
possible buffer overflow

Change-Id: I2cf36adb2651a40d6e186deaef58330d1c0105ca
CRs-Fixed: 2160756
1 file changed