net: wireless: rtl8852bs: Add PLTFM_MUTEX_UNLOCK before returning value 71/317671/1 accepted/tizen/unified/20250108.103328 accepted/tizen/unified/x/20250108.225146
authorJaehoon Chung <jh80.chung@samsung.com>
Mon, 6 Jan 2025 10:46:36 +0000 (19:46 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Mon, 6 Jan 2025 10:46:36 +0000 (19:46 +0900)
In query_status_map, if switch statement is default, it has to unlock
mutex. Otherwise, efuse_param.efuse_tbl.lock is not released.

Change-Id: I886f2b16b7fef64fbaf763e551ae657e03d49cc6
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/net/wireless/realtek/rtl8852bs/phl/hal_g6/mac/mac_ax/efuse.c

index de608ee5244d3d66239c8397ccda7965d4387a3a..9e0b40dcbd6bf664790a3259a61ecd53fc9017f2 100644 (file)
@@ -3811,6 +3811,7 @@ static u32 query_status_map(struct mac_ax_adapter *adapter,
                PLTFM_MEMCPY(map, *bank_efuse_info->log_map, map_size);
                break;
        default:
+               PLTFM_MUTEX_UNLOCK(&adapter->efuse_param.efuse_tbl.lock);
                return MACFUNCINPUT;
        }
        PLTFM_MUTEX_UNLOCK(&adapter->efuse_param.efuse_tbl.lock);