[COMMON] fimc-is2: fix resource leak: fw_blob
authorJeongtae Park <jtp.park@samsung.com>
Tue, 3 Jul 2018 05:40:22 +0000 (14:40 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:51 +0000 (20:22 +0300)
Prevent Defect ID: CID 172170
PR JIRA ID: CPR-32

Change-Id: I03939f06f158c3fe972df7335daa9c74d416cce8
Signed-off-by: Jeongtae Park <jtp.park@samsung.com>
drivers/media/platform/exynos/fimc-is2/fimc-is-device-ischain.c

index 5a2cce80f1ed5b17ee931d037642a8c87ba47252..46f73f6f131228d940dbb5e432c417d7a51c5c33 100644 (file)
@@ -1031,7 +1031,7 @@ out:
                }
                set_fs(old_fs);
        } else {
-               if (!IS_ERR_OR_NULL(fw_blob))
+               if (fw_blob)
                        release_firmware(fw_blob);
        }
        if (ret)
@@ -1139,7 +1139,7 @@ err:
                }
                set_fs(old_fs);
        } else {
-               if (!IS_ERR_OR_NULL(fw_blob))
+               if (fw_blob)
                        release_firmware(fw_blob);
        }
 
@@ -1267,7 +1267,7 @@ out:
                }
                set_fs(old_fs);
        } else {
-               if (!IS_ERR_OR_NULL(fw_blob))
+               if (fw_blob)
                        release_firmware(fw_blob);
        }