Ver código fonte

msm: ipa4: fix the rmnet_ctl tx spin_lock init issue

Add the spin_lock init for rmnet_ctl tx lock.

Change-Id: Ic9837d0ddad493dbeb9fc2566a9756b33811c40a
Signed-off-by: Bojun Pan <[email protected]>
Bojun Pan 5 anos atrás
pai
commit
7d97a47c9b
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      drivers/platform/msm/ipa/ipa_v3/rmnet_ctl_ipa.c

+ 1 - 0
drivers/platform/msm/ipa/ipa_v3/rmnet_ctl_ipa.c

@@ -104,6 +104,7 @@ int ipa3_rmnet_ctl_init(void)
 	skb_queue_head_init(&rmnet_ctl_ipa3_ctx->tx_queue);
 	rmnet_ctl_ipa3_ctx->state = IPA_RMNET_CTL_NOT_REG;
 	mutex_init(&rmnet_ctl_ipa3_ctx->lock);
+	spin_lock_init(&rmnet_ctl_ipa3_ctx->tx_lock);
 	return 0;
 }