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>] [day] [month] [year] [list]
Date:	Sat, 15 Jun 2013 16:53:14 +0800
From:	majianpeng <majianpeng@...il.com>
To:	airlied@...ux.ie
CC:	dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drm/nouveau: fix a memory leak.

When cleanup extra stat if this object was a notifier,it should free the
notifier.

Signed-off-by: Jianpeng Ma <majianpeng@...il.com>
---
  drivers/gpu/drm/nouveau/nouveau_abi16.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c 
b/drivers/gpu/drm/nouveau/nouveau_abi16.c
index 1c4c6c9..b5252ff 100644
--- a/drivers/gpu/drm/nouveau/nouveau_abi16.c
+++ b/drivers/gpu/drm/nouveau/nouveau_abi16.c
@@ -483,8 +483,7 @@ nouveau_abi16_ioctl_gpuobj_free(ABI16_IOCTL_ARGS)
      /* cleanup extra state if this object was a notifier */
      list_for_each_entry(ntfy, &chan->notifiers, head) {
          if (ntfy->handle == fini->handle) {
-            nouveau_mm_free(&chan->heap, &ntfy->node);
-            list_del(&ntfy->head);
+            nouveau_abi16_ntfy_fini(chan, ntfy);
              break;
          }
      }
-- 
1.8.1.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ