diff --git a/drivers/soc/qcom/msm_glink_pkt.c b/drivers/soc/qcom/msm_glink_pkt.c index 35d29fbce47f..2b628fb2feca 100644 --- a/drivers/soc/qcom/msm_glink_pkt.c +++ b/drivers/soc/qcom/msm_glink_pkt.c @@ -767,6 +767,7 @@ int glink_pkt_open(struct inode *inode, struct file *file) __func__, devp->open_cfg.transport, devp->open_cfg.edge, devp->open_cfg.name); ret = -ENODEV; + devp->handle = NULL; goto error; }