diff --git a/drivers/gpu/nvgpu/os/linux/sysfs.c b/drivers/gpu/nvgpu/os/linux/sysfs.c index 80fea2d63..585523048 100644 --- a/drivers/gpu/nvgpu/os/linux/sysfs.c +++ b/drivers/gpu/nvgpu/os/linux/sysfs.c @@ -1120,7 +1120,11 @@ static ssize_t tpc_pg_mask_store(struct device *dev, != 0) { nvgpu_err(g, "golden image size already initialized"); nvgpu_mutex_release(&g->static_pg_lock); - return -EINVAL; + /* + * as golden context is already created, + * return busy error code + */ + return -EBUSY; } if (platform->set_tpc_pg_mask != NULL) {