From: Christian Engelmayer Date: Sat, 17 May 2014 10:38:57 +0000 (+0200) Subject: staging: rtl8188eu: fix usage of uninit scalar in rtw_drv_init() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~39^2~36^2~411 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9eb6f16dfe958e0de659f671809e9f9e31e443ae;p=pandora-kernel.git staging: rtl8188eu: fix usage of uninit scalar in rtw_drv_init() Function rtw_drv_init() is written in a way that assumes 'status' != _SUCCESS as long as not explicitly set. Thus initialize 'status' to FAIL, in order to prevent undefined behaviour if going through the exit paths. Detected by Coverity - CID 1077832. Signed-off-by: Christian Engelmayer Acked-by: Jes Sorensen Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed