These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / net / wireless / rsi / rsi_91x_usb_ops.c
index 30c2cf7..de49008 100644 (file)
@@ -148,8 +148,10 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
        /* Copy firmware into DMA-accessible memory */
        fw = kmemdup(fw_entry->data, fw_entry->size, GFP_KERNEL);
-       if (!fw)
-               return -ENOMEM;
+       if (!fw) {
+               status = -ENOMEM;
+               goto out;
+       }
        len = fw_entry->size;
 
        if (len % 4)
@@ -162,6 +164,8 @@ static int rsi_load_ta_instructions(struct rsi_common *common)
 
        status = rsi_copy_to_card(common, fw, len, num_blocks);
        kfree(fw);
+
+out:
        release_firmware(fw_entry);
        return status;
 }