aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-trace.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2023-02-14 05:09:55 +0300
committerRob Clark <[email protected]>2023-02-22 11:22:03 -0800
commitb4fb748f0b734ce1d2e7834998cc599fcbd25d67 (patch)
tree0ed1e7d8965bf55f2d7184f69cd9778a1cef3873 /drivers/usb/cdns3/cdns3-trace.c
parent141f66ebbfa17cc7e2075f06c50107da978c965b (diff)
drm/msm/a5xx: fix the emptyness check in the preempt code
Quoting Yassine: ring->memptrs->rptr is never updated and stays 0, so the comparison always evaluates to false and get_next_ring always returns ring 0 thinking it isn't empty. Fix this by calling get_rptr() instead of reading rptr directly. Reported-by: Yassine Oudjana <[email protected]> Fixes: b1fc2839d2f9 ("drm/msm: Implement preemption for A5XX targets") Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/522642/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions