Add NULL check for qdf_ctx to avoid dereference. Change-Id: I75f5f2baafdf6b9c1a7587a3d17934c9246acccd CRs-Fixed: 2326306