staging: rtl8188eu: fix possible NULL dereference
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 14 Aug 2015 16:27:51 +0000 (21:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 02:20:39 +0000 (19:20 -0700)
commitf1126b1d0d7c0daf48f50e566c498912b31c459f
treebf2a9f437450818e4ca403a7b5d9ef5fbb5ac9c2
parent2b05df556e01f846fd67f8888add9919af55f35c
staging: rtl8188eu: fix possible NULL dereference

dm_odm was being checked for NULL after dereferencing it. Lets check for
NULL first before derefenrencing it.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/Hal8188ERateAdaptive.c