Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

reservation: Remove shadowing local variable 'ret'

It was causing the return value of fence_is_signaled to be ignored, making
reservation objects signal too early.

Cc: stable@vger.kernel.org
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>

authored by

Michel Dänzer and committed by
Sumit Semwal
4eb2440e 847b19a3

-2
-2
drivers/dma-buf/reservation.c
··· 405 405 int ret = 1; 406 406 407 407 if (!test_bit(FENCE_FLAG_SIGNALED_BIT, &lfence->flags)) { 408 - int ret; 409 - 410 408 fence = fence_get_rcu(lfence); 411 409 if (!fence) 412 410 return -1;