diff options
author | Christian König <christian.koenig@amd.com> | 2020-11-26 13:35:08 +0100 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2020-11-26 16:58:14 +0100 |
commit | aea656b0d05ec5b8ed5beb2f94c4dd42ea834e9d (patch) | |
tree | d914abda71757b220e6bbb516ec9c0b8669fe2d7 | |
parent | c70582bbf299986234ecf06d128454b4b38ecd2e (diff) |
drm/nouveau: make sure ret is initialized in nouveau_ttm_io_mem_reserve
This wasn't initialized for pre NV50 hardware.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-and-Tested-by: Mark Hounschell <markh@compro.net>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/series/84298/
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_bo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 2ee75646ad6f..d02f3a58adb6 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1215,8 +1215,8 @@ retry: } reg->bus.offset = handle; - ret = 0; } + ret = 0; break; default: ret = -EINVAL; |