From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tommi Rantala Subject: [PATCH 0/6] alloc_apertures() handling fixes Date: Fri, 9 Nov 2012 11:19:34 +0200 Message-ID: <1352452780-2029-1-git-send-email-tt.rantala@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 4494AA0BA1 for ; Fri, 9 Nov 2012 01:24:28 -0800 (PST) Received: by mail-wg0-f43.google.com with SMTP id dq11so1809631wgb.12 for ; Fri, 09 Nov 2012 01:24:27 -0800 (PST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: David Airlie , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Greetings, The following patches fix a few memory leaks and other problems related to the alloc_apertures() call. Tommi Rantala (6): drm/cirrus: check alloc_apertures() success in cirrus_kick_out_firmware_fb() drm/mgag200: check alloc_apertures() success in mga_vram_init() drm/mgag200: free memory allocated with alloc_apertures() drm/mgag200: remove unneeded aper->count assignment after alloc_apertures() drm/radeon: check alloc_apertures() success in radeon_kick_out_firmware_fb() drm/nouveau: free memory allocated with alloc_apertures() drivers/gpu/drm/cirrus/cirrus_drv.c | 13 +++++++++++-- drivers/gpu/drm/mgag200/mgag200_main.c | 4 +++- drivers/gpu/drm/nouveau/nouveau_drm.c | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 13 +++++++++++-- 4 files changed, 26 insertions(+), 5 deletions(-) -- 1.7.9.5