mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: check fb_flush() return value
Currently, ioctl_flush_l2 function and fecs_trace_poll() do not check error value returned by fb_flush(). This patch checks if fb_flush() returns an error and passes this error value up the stack. Jira NVGPU-3475 Change-Id: I42208e3532873cf4088b350d31d867a96bea47be Signed-off-by: Vedashree Vidwans <vvidwans@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2259647 Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
0ede89f859
commit
877ee6d305
@@ -656,7 +656,11 @@ static int nvgpu_gpu_ioctl_l2_fb_ops(struct gk20a *g,
|
||||
}
|
||||
|
||||
if (args->fb_flush) {
|
||||
g->ops.mm.cache.fb_flush(g);
|
||||
err = g->ops.mm.cache.fb_flush(g);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "mm.cache.fb_flush() failed err=%d", err);
|
||||
return err;
|
||||
}
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user