From ac5ff0aee4cfb35ae3411b140f81f424de1957fb Mon Sep 17 00:00:00 2001 From: "jiamin.miao" Date: Thu, 27 Feb 2014 15:07:45 +0800 Subject: [PATCH] PD#87831:fix p2p null pointer error --- broadcm_40181/wl_cfgp2p.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/broadcm_40181/wl_cfgp2p.c b/broadcm_40181/wl_cfgp2p.c index 4d94711..d87b49c 100755 --- a/broadcm_40181/wl_cfgp2p.c +++ b/broadcm_40181/wl_cfgp2p.c @@ -735,7 +735,7 @@ wl_cfgp2p_disable_discovery(struct wl_priv *wl) if(!wl->p2p) { // terence 20130113: Fix for p2p NULL pointer CFGP2P_ERR(("wl->p2p is NULL\n")); - goto exit; + return -1; } if (wl_to_p2p_bss_bssidx(wl, P2PAPI_BSSCFG_DEVICE) == 0) { -- 2.20.1