|
@@ -1209,6 +1209,8 @@ static int __wlan_hdd_bus_suspend(struct wow_enable_params wow_params,
|
|
|
hdd_info("starting bus suspend");
|
|
|
|
|
|
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
+ if (!hdd_ctx)
|
|
|
+ return -ENODEV;
|
|
|
|
|
|
err = wlan_hdd_validate_context(hdd_ctx);
|
|
|
if (0 != err) {
|
|
@@ -1909,6 +1911,8 @@ static int wlan_hdd_pld_suspend(struct device *dev,
|
|
|
struct hdd_context *hdd_ctx;
|
|
|
|
|
|
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
|
|
+ if (!hdd_ctx)
|
|
|
+ return -ENODEV;
|
|
|
|
|
|
errno = wlan_hdd_validate_context(hdd_ctx);
|
|
|
if (0 != errno) {
|