Merge tag 'block-6.2-2023-01-27' of git://git.kernel.dk/linux
[linux-2.6-block.git] / lib / test_firmware.c
index c82b65947ce68029a578396cb12347ed477404f6..e207bc08820d0ed5e08fd06b94f59c8592fe9400 100644 (file)
@@ -284,7 +284,7 @@ static ssize_t config_show(struct device *dev,
                                test_fw_config->name);
        else
                len += scnprintf(buf + len, PAGE_SIZE - len,
-                               "name:\tEMTPY\n");
+                               "name:\tEMPTY\n");
 
        len += scnprintf(buf + len, PAGE_SIZE - len,
                        "num_requests:\t%u\n", test_fw_config->num_requests);
@@ -315,7 +315,7 @@ static ssize_t config_show(struct device *dev,
                                test_fw_config->upload_name);
        else
                len += scnprintf(buf + len, PAGE_SIZE - len,
-                               "upload_name:\tEMTPY\n");
+                               "upload_name:\tEMPTY\n");
 
        mutex_unlock(&test_fw_mutex);
 
@@ -1491,6 +1491,7 @@ static int __init test_firmware_init(void)
 
        rc = misc_register(&test_fw_misc_device);
        if (rc) {
+               __test_firmware_config_free();
                kfree(test_fw_config);
                pr_err("could not register misc device: %d\n", rc);
                return rc;