|
Lines 180-192
static int iwl_dbg_tlv_alloc_region(struct iwl_trans *trans,
Link Here
|
| 180 |
if (le32_to_cpu(tlv->length) < sizeof(*reg)) |
180 |
if (le32_to_cpu(tlv->length) < sizeof(*reg)) |
| 181 |
return -EINVAL; |
181 |
return -EINVAL; |
| 182 |
|
182 |
|
| 183 |
/* For safe using a string from FW make sure we have a |
|
|
| 184 |
* null terminator |
| 185 |
*/ |
| 186 |
reg->name[IWL_FW_INI_MAX_NAME - 1] = 0; |
| 187 |
|
| 188 |
IWL_DEBUG_FW(trans, "WRT: parsing region: %s\n", reg->name); |
| 189 |
|
| 190 |
if (id >= IWL_FW_INI_MAX_REGION_ID) { |
183 |
if (id >= IWL_FW_INI_MAX_REGION_ID) { |
| 191 |
IWL_ERR(trans, "WRT: Invalid region id %u\n", id); |
184 |
IWL_ERR(trans, "WRT: Invalid region id %u\n", id); |
| 192 |
return -EINVAL; |
185 |
return -EINVAL; |
| 193 |
- |
|
|