|
@@ -3599,7 +3599,8 @@ static int rmnet_ipa_ap_resume(struct device *dev)
|
|
|
|
|
|
IPAWANDBG("Enter...\n");
|
|
IPAWANDBG("Enter...\n");
|
|
/* Clear the suspend in progress flag. */
|
|
/* Clear the suspend in progress flag. */
|
|
- atomic_set(&rmnet_ipa3_ctx->ap_suspend, 0);
|
|
|
|
|
|
+ if (rmnet_ipa3_ctx)
|
|
|
|
+ atomic_set(&rmnet_ipa3_ctx->ap_suspend, 0);
|
|
if (netdev) {
|
|
if (netdev) {
|
|
netif_device_attach(netdev);
|
|
netif_device_attach(netdev);
|
|
netif_trans_update(netdev);
|
|
netif_trans_update(netdev);
|