mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
Merge "qcacld-3.0: Fix null qdf_dev pointer in ramdump handler" into wlan-cld3.driver.lnx.1.1-dev
This commit is contained in:
commit
b3277a2cbc
1 changed files with 3 additions and 7 deletions
|
|
@ -473,17 +473,13 @@ static inline void ol_get_ramdump_mem(struct device *dev,
|
|||
int ol_copy_ramdump(struct hif_opaque_softc *scn)
|
||||
{
|
||||
int ret = -1;
|
||||
struct hif_opaque_softc **ol_ctx_ptr = &scn;
|
||||
struct ol_context *ol_ctx;
|
||||
qdf_device_t qdf_dev;
|
||||
struct ramdump_info *info;
|
||||
qdf_device_t qdf_dev = cds_get_context(QDF_MODULE_ID_QDF_DEVICE);
|
||||
|
||||
ol_ctx = container_of(ol_ctx_ptr, struct ol_context , scn);
|
||||
if (!ol_ctx) {
|
||||
BMI_ERR("%s: Invalid ol_ctx\n", __func__);
|
||||
if (!qdf_dev) {
|
||||
BMI_ERR("%s qdf_dev is NULL", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
qdf_dev = ol_ctx->qdf_dev;
|
||||
|
||||
if (hif_get_bus_type(scn) == QDF_BUS_TYPE_SDIO)
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue