The length of the mod_locks array is NV_HOST1X_NB_MLOCKS, not NV_HOST1X_SYNCPT_NB_PTS. Signed-off-by: Robert Morell <rmorell@xxxxxxxxxx> --- drivers/video/tegra/host/dev.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/video/tegra/host/dev.c b/drivers/video/tegra/host/dev.c index daed882..42d268e 100644 --- a/drivers/video/tegra/host/dev.c +++ b/drivers/video/tegra/host/dev.c @@ -452,7 +452,7 @@ static int nvhost_ioctl_ctrl_module_mutex( struct nvhost_ctrl_module_mutex_args *args) { int err = 0; - if (args->id >= NV_HOST1X_SYNCPT_NB_PTS || + if (args->id >= NV_HOST1X_NB_MLOCKS || args->lock > 1) return -EINVAL; -- 1.7.2.2 -- To unsubscribe from this list: send the line "unsubscribe linux-tegra" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html