diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2b0fe0d5574d..4fff2e447861 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -2482,7 +2482,7 @@ uint32_t hdd_wlan_get_version(struct hdd_context *hdd_ctx, return 0; } - if (!version && version_len == 0) { + if (!version || version_len == 0) { hdd_err("Invalid buffer pointr or buffer len\n"); return 0; }