edesktop.org; linux-kernel@vger.kernel.org
Subject: [PATCH] drm/ttm: optimize errors checking and free _manager when
finishing
In the function ttm_page_alloc_init, kzalloc call is made for variable
_manager, we need to check its return value, it may return NULL.
In the function ttm_page_alloc_f
] drm/ttm: optimize errors checking and free _manager when
finishing
In the function ttm_page_alloc_init, kzalloc call is made for variable
_manager, we need to check its return value, it may return NULL.
In the function ttm_page_alloc_fini, we need to call kfree for variable
_manager, instead
ject: [PATCH] drm/ttm: optimize errors checking and free _manager when
finishing
In the function ttm_page_alloc_init, kzalloc call is made for variable
_manager, we need to check its return value, it may return NULL.
In the function ttm_page_alloc_fini, we need to call kfree for variable
_mana
-Original Message-
From: Xiongwei Song [mailto:sxwj...@gmail.com]
Sent: Sunday, December 31, 2017 7:40 PM
To: Koenig, Christian ; He, Roger
; airl...@linux.ie
Cc: dri-de...@lists.freedesktop.org; linux-kernel@vger.kernel.org
Subject: [PATCH] drm/ttm: optimize errors checking and free
In the function ttm_page_alloc_init, kzalloc call is made for variable
_manager, we need to check its return value, it may return NULL.
In the function ttm_page_alloc_fini, we need to call kfree for variable
_manager, instead of make _manager NULL directly.
Signed-off-by: Xiongwei Song
In the function ttm_page_alloc_init, kzalloc call is made for variable
_manager, we need to check its return value, it may return NULL.
In the function ttm_page_alloc_fini, we need to call kfree for variable
_manager, instead of make _manager NULL directly.
Signed-off-by: Xiongwei Song
---
6 matches
Mail list logo