|
@@ -1230,6 +1230,8 @@ made_compressed_probe:
|
|
|
i = device_create_file(&intf->dev, &dev_attr_wCountryCodes);
|
|
|
if (i < 0) {
|
|
|
kfree(acm->country_codes);
|
|
|
+ acm->country_codes = NULL;
|
|
|
+ acm->country_code_size = 0;
|
|
|
goto skip_countries;
|
|
|
}
|
|
|
|
|
@@ -1238,6 +1240,8 @@ made_compressed_probe:
|
|
|
if (i < 0) {
|
|
|
device_remove_file(&intf->dev, &dev_attr_wCountryCodes);
|
|
|
kfree(acm->country_codes);
|
|
|
+ acm->country_codes = NULL;
|
|
|
+ acm->country_code_size = 0;
|
|
|
goto skip_countries;
|
|
|
}
|
|
|
}
|