lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAPM=9twmbMC8VSoShxZUDW2+7=Kp0kBXsV33v7+4crrDyzfMAg@mail.gmail.com>
Date:   Thu, 24 Aug 2023 12:57:18 +1000
From:   Dave Airlie <airlied@...il.com>
To:     Danilo Krummrich <dakr@...hat.com>
Cc:     daniel@...ll.ch, boris.brezillon@...labora.com,
        matthew.brost@...el.com, thomas.hellstrom@...ux.intel.com,
        dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH drm-misc-next] drm/gpuva_mgr: remove unused prev pointer
 in __drm_gpuva_sm_map()

On Thu, 24 Aug 2023 at 09:31, Danilo Krummrich <dakr@...hat.com> wrote:
>
> The prev pointer in __drm_gpuva_sm_map() was used to implement automatic
> merging of mappings. Since automatic merging did not make its way
> upstream, remove this leftover.
>
> Fixes: e6303f323b1a ("drm: manager to keep track of GPUs VA mappings")
> Signed-off-by: Danilo Krummrich <dakr@...hat.com>

Reviewed-by: Dave Airlie <airlied@...hat.com>
> ---
>  drivers/gpu/drm/drm_gpuva_mgr.c | 10 ++++------
>  1 file changed, 4 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_gpuva_mgr.c b/drivers/gpu/drm/drm_gpuva_mgr.c
> index 1bc91fc60ef3..3e1ca878cb7e 100644
> --- a/drivers/gpu/drm/drm_gpuva_mgr.c
> +++ b/drivers/gpu/drm/drm_gpuva_mgr.c
> @@ -1743,7 +1743,7 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr,
>                    u64 req_addr, u64 req_range,
>                    struct drm_gem_object *req_obj, u64 req_offset)
>  {
> -       struct drm_gpuva *va, *next, *prev = NULL;
> +       struct drm_gpuva *va, *next;
>         u64 req_end = req_addr + req_range;
>         int ret;
>
> @@ -1773,7 +1773,7 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr,
>                                 ret = op_unmap_cb(ops, priv, va, merge);
>                                 if (ret)
>                                         return ret;
> -                               goto next;
> +                               continue;
>                         }
>
>                         if (end > req_end) {
> @@ -1818,7 +1818,7 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr,
>                                 ret = op_remap_cb(ops, priv, &p, NULL, &u);
>                                 if (ret)
>                                         return ret;
> -                               goto next;
> +                               continue;
>                         }
>
>                         if (end > req_end) {
> @@ -1851,7 +1851,7 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr,
>                                 ret = op_unmap_cb(ops, priv, va, merge);
>                                 if (ret)
>                                         return ret;
> -                               goto next;
> +                               continue;
>                         }
>
>                         if (end > req_end) {
> @@ -1872,8 +1872,6 @@ __drm_gpuva_sm_map(struct drm_gpuva_manager *mgr,
>                                 break;
>                         }
>                 }
> -next:
> -               prev = va;
>         }
>
>         return op_map_cb(ops, priv,
> --
> 2.41.0
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ