Skip to content
Commit 3ff3d59e authored by Eric Engestrom's avatar Eric Engestrom Committed by Matt Turner
Browse files

atomic: fix atomic_add_unless() fallback's return value

According to the kernel documentation:
  Returns non-zero if @v was not @u, and zero otherwise.

Fixes: 63fc5718 ("atomic: add atomic_add_unless()")
Closes: https://gitlab.freedesktop.org/mesa/drm/issues/17


Signed-off-by: default avatarDavid Shao <davshao@gmail.com>
Reviewed-by: default avatarEric Engestrom <eric@engestrom.ch>

[Eric: fix its callers to maintain current behaviour]
Signed-off-by: default avatarEric Engestrom <eric@engestrom.ch>
parent cf54ebf6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment