mirror of
https://github.com/torvalds/linux.git
synced 2026-09-19 17:18:02 +02:00
dma_resv_wait_timeout() returns a positive 'remaining jiffies' value
on success, 0 on timeout, and -errno on failure.
rocket_ioctl_prep_bo() returns this 'long' result from an int-typed
ioctl handler, so positive values reach userspace as bogus errors.
Explicitly set ret to 0 on the success path.
Fixes:
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| rocket_core.c | ||
| rocket_core.h | ||
| rocket_device.c | ||
| rocket_device.h | ||
| rocket_drv.c | ||
| rocket_drv.h | ||
| rocket_gem.c | ||
| rocket_gem.h | ||
| rocket_job.c | ||
| rocket_job.h | ||
| rocket_registers.h | ||