Skip to contentSkip to conversation

drm/ttm: Fix comment about return value of ttm_tt_init

PATCH New Kenjiro Nakayama 1 participant 1 message Oct 24, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/ttm: Fix comment about return value of ttm_tt_init

ttm_tt_init returns -ENOMEM when out of memory.

---
 include/drm/ttm/ttm_tt.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/ttm/ttm_tt.h +1 -1
index a4eff85b1f44..243232be87b8 100644
@@ -145,7 +145,7 @@ int ttm_tt_create(struct ttm_buffer_object *bo, bool zero_alloc);
  * Create a struct ttm_tt to back data with system memory pages.
  * No pages are actually allocated.
  * Returns:
- * NULL: Out of memory.
+ * -ENOMEM: Out of memory.
  */
 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_buffer_object *bo,
 		uint32_t page_flags, enum ttm_caching caching,
Signature · 1 line
2.41.0