qcacld-3.0: Avoid NULL dereference in hdd_init_qdf_ctx()
Currently hdd_init_qdf_ctx() calls cds_get_context() to retrieve the
QDF Device context, and then writes into the context without
validating the pointer. Add logic to validate the pointer before
using it.
Change-Id: Ib427d1348b3ff5b13689e24f69e4606f23ea767c
CRs-Fixed: 1042043