diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c index 09814568..7f70d347 100644 --- a/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/channel_sync_gk20a.c | |||
@@ -313,7 +313,7 @@ static struct gk20a_channel_sync * | |||
313 | gk20a_channel_syncpt_create(struct channel_gk20a *c) | 313 | gk20a_channel_syncpt_create(struct channel_gk20a *c) |
314 | { | 314 | { |
315 | struct gk20a_channel_syncpt *sp; | 315 | struct gk20a_channel_syncpt *sp; |
316 | char syncpt_name[16]; | 316 | char syncpt_name[32]; |
317 | 317 | ||
318 | sp = kzalloc(sizeof(*sp), GFP_KERNEL); | 318 | sp = kzalloc(sizeof(*sp), GFP_KERNEL); |
319 | if (!sp) | 319 | if (!sp) |
@@ -322,7 +322,8 @@ gk20a_channel_syncpt_create(struct channel_gk20a *c) | |||
322 | sp->c = c; | 322 | sp->c = c; |
323 | sp->host1x_pdev = c->g->host1x_dev; | 323 | sp->host1x_pdev = c->g->host1x_dev; |
324 | 324 | ||
325 | sprintf(syncpt_name, "%s_%d", dev_name(&c->g->dev->dev), c->hw_chid); | 325 | snprintf(syncpt_name, sizeof(syncpt_name), |
326 | "%s_%d", dev_name(&c->g->dev->dev), c->hw_chid); | ||
326 | 327 | ||
327 | sp->id = nvhost_get_syncpt_host_managed(sp->host1x_pdev, | 328 | sp->id = nvhost_get_syncpt_host_managed(sp->host1x_pdev, |
328 | c->hw_chid, syncpt_name); | 329 | c->hw_chid, syncpt_name); |