The next time the same transaction structure is used, when the req_id's wrap around, it should be completely cleared (memset) to avoid corruption. Signed-off-by: Varun B Patil <varun.basavaraj.patil@xxxxxxxxx> --- drivers/staging/omapdce/dce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/omapdce/dce.c b/drivers/staging/omapdce/dce.c index 1d9b75c..2dbb24e9 100644 --- a/drivers/staging/omapdce/dce.c +++ b/drivers/staging/omapdce/dce.c @@ -754,7 +754,7 @@ static int ioctl_engine_open(struct drm_device *dev, void *data, strncpy(req.name, arg->name, sizeof(req.name)); ret = rpsend(priv, &arg->token, hdr(&req), sizeof(req)); if (ret) - return ret; + return rpabort(hdr(&req), ret); } /* then wait for reply, which is interruptible */ -- 1.8.1.2 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel