From: Jiayi Ye Date: Thu, 23 Oct 2014 14:05:10 +0000 (+0800) Subject: staging: rtl8188eu: core: fix null dereference on exit path in rtw_mlme.c X-Git-Tag: omap-for-v3.19/fixes-rc1~73^2~1029 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7424a0609063826a60a933ace872a1e747dfeede;p=pandora-kernel.git staging: rtl8188eu: core: fix null dereference on exit path in rtw_mlme.c If adapter is null, null dereference may occur. This patch fixes it. The following Coccinelle semantic patch was used to find the case. @@ expression E, E1; identifier f; statement S1,S2,S3; @@ * if (E == NULL) { ... when != if (E == NULL) S1 else S2 when != E = E1 * E->f ... when any return ...; } else S3 Signed-off-by: Jiayi Ye Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed